PERFORCE change 36496 for review

Chris Vance cvance at FreeBSD.org
Wed Aug 20 18:13:11 GMT 2003


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

Change 36496 by cvance at cvance_osx_laptop on 2003/08/20 11:12:54

	Initialize the MAC framework.  Darwin doesn't have SYSINIT (yet), so 
	pick a likely place in bsd_init().  The style looks a bit odd (with the
	externs), but that's how DEVFS is done...

Affected files ...

.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/kern/bsd_init.c#2 edit

Differences ...

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

@@ -285,6 +285,19 @@
 	/* Initialize the uthread zone */
 	uthread_zone_init();
 
+#ifdef MAC
+	/*
+	 * Initialize the MAC Framework
+	 */
+	{
+	    extern mac_init(void);
+	    extern mac_late_init(void);
+
+	    mac_init();
+	    mac_late_init();
+	}
+#endif /* MAC */
+
 	/*
 	 * Initialize process and pgrp structures.
 	 */
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