Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2002 20:25:15 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 21130 for review
Message-ID:  <200211170425.gAH4PFmS023868@repoman.freebsd.org>

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

Change 21130 by rwatson@rwatson_paprika on 2002/11/16 20:24:45

	vp!=NULL is an invariant for mac_check_kld_load(), so don't
	attempt to handle vp!=NULL.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#364 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#364 (text+ko) ====

@@ -2321,15 +2321,12 @@
 {
 	int error;
 
-	if (vp != NULL) {
-		ASSERT_VOP_LOCKED(vp, "mac_check_system_acct");
-	}
+	ASSERT_VOP_LOCKED(vp, "mac_check_kld_load");
 
 	if (!mac_enforce_system)
 		return (0);
 
-	MAC_CHECK(check_kld_load, cred, vp,
-	    vp != NULL ? &vp->v_label : NULL);
+	MAC_CHECK(check_kld_load, cred, vp, &vp->v_label);
 
 	return (error);
 }

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?200211170425.gAH4PFmS023868>