Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 11:13:11 -0700 (PDT)
From:      Chris Vance <cvance@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 36496 for review
Message-ID:  <200308201813.h7KIDBvS081964@repoman.freebsd.org>

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

Change 36496 by cvance@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.
 	 */



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