PERFORCE change 18434 for review

Robert Watson rwatson at freebsd.org
Tue Oct 1 03:19:49 GMT 2002


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

Change 18434 by rwatson at rwatson_paprika on 2002/09/30 20:19:16

	Slight tweak to fallback logic WRT MAC_DEBUG: when MAC_DEBUG
	was disabled, the fallback would incorrectly use the
	VOP_GETATTR() return value to determine if a failure should
	take place.

Affected files ...

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

Differences ...

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

@@ -1875,12 +1875,13 @@
 			printf(", falling back.\n");
 			mac_update_vnode_from_mount(vp, vp->v_mount);
 			error = 0;
-		}
+		} else {
 #endif
-		else {
 			printf(".\n");
 			error = EPERM;
+#ifdef MAC_DEBUG
 		}
+#endif
 	}
 
 	return (error);
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