Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2006 11:01:35 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 103326 for review
Message-ID:  <200608061101.k76B1ZBJ041166@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103326

Change 103326 by rwatson@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);



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