Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 20:24:11 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 56804 for review
Message-ID:  <200407082024.i68KOBLr026310@repoman.freebsd.org>

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

Change 56804 by rwatson@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"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407082024.i68KOBLr026310>