PERFORCE change 15385 for review

Robert Watson rwatson at freebsd.org
Thu Aug 1 15:15:31 GMT 2002


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

Change 15385 by rwatson at rwatson_paprika on 2002/08/01 08:14:33

	Remove dups from integ.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_exec.c#30 edit

Differences ...

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

@@ -30,7 +30,6 @@
 #include "opt_mac.h"
 
 #include <sys/param.h>
-#include <sys/mac.h>
 #include <sys/systm.h>
 #include <sys/lock.h>
 #include <sys/mutex.h>
@@ -988,17 +987,6 @@
 	if (error)
 		return (error);
 
-#ifdef MAC
-	/*
-	 * Check that we can execute the file, and hold onto the lock so
-	 * that the label is retained for use later for MAC models that
-	 * support subject domain transitions at execve()-time.
-	 */
-	error = mac_check_vnode_exec(curthread->td_ucred, imgp->vp);
-	if (error)
-		return (error);
-#endif
-
 	/*
 	 * Check number of open-for-writes on the file and deny execution
 	 * if there are any.
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