PERFORCE change 103326 for review
Robert Watson
rwatson at FreeBSD.org
Sun Aug 6 11:01:38 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103326
Change 103326 by rwatson at rwatson_zoo on 2006/08/06 11:01:27
In FreeBSD, assert the vnode lock when accessing MAC labels on
vnodes.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/security/mac/mac_audit.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/security/mac/mac_audit.c#5 (text+ko) ====
@@ -71,6 +71,8 @@
int error;
struct label *vl;
+ ASSERT_VOP_LOCKED(vp, "mac_check_system_auditctl");
+
vl = (vp != NULL) ? vp->v_label : NULL;
MAC_CHECK(check_system_auditctl, cred, vp, vl);
More information about the trustedbsd-cvs
mailing list