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().
This commit is contained in:
elad 2007-01-26 21:57:47 +00:00
parent 854c48804d
commit 4ee02bdcac
1 changed files with 5 additions and 5 deletions

View File

@ -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 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
@ -71,7 +71,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__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_ipsec.h"
#include "opt_kcont.h" #include "opt_kcont.h"
@ -262,6 +262,9 @@ main(void)
/* Initialize callouts. */ /* Initialize callouts. */
callout_startup(); callout_startup();
/* Initialize kauth. */
kauth_init();
/* Initialize the buffer cache */ /* Initialize the buffer cache */
bufinit(); bufinit();
@ -330,9 +333,6 @@ main(void)
ntp_init(); ntp_init();
#endif /* __HAVE_TIMECOUNTER */ #endif /* __HAVE_TIMECOUNTER */
/* Initialize kauth. */
kauth_init();
/* Configure the system hardware. This will enable interrupts. */ /* Configure the system hardware. This will enable interrupts. */
configure(); configure();