PERFORCE change 17700 for review

Adam Migus amigus at freebsd.org
Thu Sep 19 04:39:34 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17700

Change 17700 by amigus at amigus_ganymede on 2002/09/18 21:39:06

	I love introducing compile-time bugs fixing run-time bugs.  This
	takes away the fallback label hack introduced by rwatson unless
	you have MAC_DEBUG defined.

Affected files ...

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

Differences ...

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

@@ -1832,11 +1832,14 @@
 		    vp->v_mount->mnt_stat.f_mntonname);
 		if (VOP_GETATTR(vp, &va, curthread->td_ucred, curthread) == 0)
 			printf(" inum %ld", va.va_fileid);
+#ifdef MAC_DEBUG
 		if (mac_debug_label_fallback) {
 			printf(", falling back.\n");
 			mac_update_vnode_from_mount(vp, vp->v_mount);
 			error = 0;
-		} else {
+		}
+#endif
+		else {
 			printf(".\n");
 			error = EPERM;
 		}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list