PERFORCE change 56804 for review

Robert Watson rwatson at FreeBSD.org
Thu Jul 8 13:24:11 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=56804

Change 56804 by rwatson at rwatson_tislabs on 2004/07/08 20:24:06

	Trim uneeded #ifdef, comment that isn't necessarily useful.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/sysv_sem.c#24 edit

Differences ...

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

@@ -26,9 +26,7 @@
 #include <sys/sysctl.h>
 #include <sys/malloc.h>
 #include <sys/jail.h>
-#ifdef MAC
 #include <sys/mac.h>
-#endif
 
 static MALLOC_DEFINE(M_SEM, "sem", "SVID compatible semaphores");
 
@@ -572,10 +570,6 @@
 	sema_mtxp = &sema_mtx[semid];
 #ifdef MAC
 	mtx_lock(sema_mtxp);
-	/*
-	 * The MAC framework lets the policies decide what type of access
-	 * is permitted, based on the cmd.
-	 */
 	if ((error = mac_check_ipc_semctl(cred, semakptr, cmd))) {
 		MPRINTF((
 		    "MAC Framework: mac_check_ipc_semctl access denied\n"));


More information about the p4-projects mailing list