From owner-p4-projects Sun Oct 27 0:16: 5 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0B46737B404; Sun, 27 Oct 2002 00:16:03 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98B0E37B401 for ; Sun, 27 Oct 2002 00:16:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5534D43E6E for ; Sun, 27 Oct 2002 00:16:02 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9R7F4mV077124 for ; Sun, 27 Oct 2002 00:15:04 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9R7F3tU077121 for perforce@freebsd.org; Sun, 27 Oct 2002 00:15:03 -0700 (PDT) Date: Sun, 27 Oct 2002 00:15:03 -0700 (PDT) Message-Id: <200210270715.g9R7F3tU077121@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 20236 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=20236 Change 20236 by rwatson@rwatson_tislabs on 2002/10/27 00:14:45 Rename the swapon hook. I'm not quite sure what the sort order for sebsd.c is, so leave as is. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#52 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#52 (text+ko) ==== @@ -1063,7 +1063,7 @@ } static int -sebsd_check_vnode_swapon(struct ucred *cred, struct vnode *vp, +sebsd_check_system_swapon(struct ucred *cred, struct vnode *vp, struct label *vnodelabel) { return vnode_has_perm(cred, vp, FILE__SWAPON, NULL); @@ -1297,8 +1297,8 @@ (macop_t)sebsd_check_vnode_setutimes }, { MAC_CHECK_VNODE_STAT, (macop_t)sebsd_check_vnode_stat }, - { MAC_CHECK_VNODE_SWAPON, - (macop_t)sebsd_check_vnode_swapon }, + { MAC_CHECK_SYSTEM_SWAPON, + (macop_t)sebsd_check_system_swapon }, { MAC_CHECK_VNODE_WRITE, (macop_t)sebsd_check_vnode_write }, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message