PERFORCE change 33476 for review

Robert Watson rwatson at FreeBSD.org
Sat Jun 21 17:16:05 GMT 2003


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

Change 33476 by rwatson at rwatson_powerbook on 2003/06/21 10:15:15

	Help kern_mac.c become more Darwin-friendly; don't include what
	are currently FreeBSD-specific include files; use Mach headers
	for locks and wait queues (we might be able to drop this by
	solely using our cv wrappers).  Some of these changes will have
	to be resolved later at the structure level; we may want to change
	the FreeBSD version of the MAC Framework to pass imgact argument
	pieces directly, rather than the FreeBSD-specific structure into
	MAC modules.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/kern/kern_mac.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/kern/kern_mac.c#3 (text+ko) ====

@@ -45,11 +45,12 @@
 #include <sys/param.h>
 #include <sys/condvar.h>
 #include <sys/extattr.h>
+#if 0
 #include <sys/imgact.h>
+#endif
 #include <sys/kernel.h>
 #include <sys/lock.h>
 #include <sys/malloc.h>
-#include <sys/mutex.h>
 #include <sys/mac.h>
 #include <sys/module.h>
 #include <sys/proc.h>
@@ -82,6 +83,9 @@
 #include <netinet/in.h>
 #include <netinet/ip_var.h>
 
+#include <kern/wait_queue.h>
+#include <kern/lock.h>
+
 #ifdef MAC
 
 /*
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