From owner-p4-projects@FreeBSD.ORG Wed Aug 20 11:13:13 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8F18C16A4C1; Wed, 20 Aug 2003 11:13:12 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39F4816A4C0 for ; Wed, 20 Aug 2003 11:13:12 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D611943FB1 for ; Wed, 20 Aug 2003 11:13:11 -0700 (PDT) (envelope-from cvance@nailabs.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7KIDB0U081967 for ; Wed, 20 Aug 2003 11:13:11 -0700 (PDT) (envelope-from cvance@nailabs.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7KIDBvS081964 for perforce@freebsd.org; Wed, 20 Aug 2003 11:13:11 -0700 (PDT) Date: Wed, 20 Aug 2003 11:13:11 -0700 (PDT) Message-Id: <200308201813.h7KIDBvS081964@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cvance@nailabs.com using -f From: Chris Vance To: Perforce Change Reviews Subject: PERFORCE change 36496 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 18:13:13 -0000 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. */