From 4ee02bdcac3988bc5b9c3eea15cf330968b7c5c7 Mon Sep 17 00:00:00 2001 From: elad Date: Fri, 26 Jan 2007 21:57:47 +0000 Subject: [PATCH] Initialize kauth(9) sooner. Since we'll soon want to be able to control the inheritance of credentials, kauth(9) needs to be ready for use much sooner -- at least before the call to proc0_init(). --- sys/kern/init_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 32dbdf83453b..41fcf1609cfd 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $NetBSD: init_main.c,v 1.288 2007/01/19 14:49:10 hannken Exp $ */ +/* $NetBSD: init_main.c,v 1.289 2007/01/26 21:57:47 elad Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.288 2007/01/19 14:49:10 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.289 2007/01/26 21:57:47 elad Exp $"); #include "opt_ipsec.h" #include "opt_kcont.h" @@ -262,6 +262,9 @@ main(void) /* Initialize callouts. */ callout_startup(); + /* Initialize kauth. */ + kauth_init(); + /* Initialize the buffer cache */ bufinit(); @@ -330,9 +333,6 @@ main(void) ntp_init(); #endif /* __HAVE_TIMECOUNTER */ - /* Initialize kauth. */ - kauth_init(); - /* Configure the system hardware. This will enable interrupts. */ configure();