Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 00:15:03 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 20236 for review
Message-ID:  <200210270715.g9R7F3tU077121@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210270715.g9R7F3tU077121>