summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-07-31 01:11:29 +0000
committerrwatson <rwatson@FreeBSD.org>2002-07-31 01:11:29 +0000
commit6228fca50556976ed17efbedf4d2d2c55a014575 (patch)
tree3181dfd09270418e03ceef238510e52910602484 /sys/kern/init_main.c
parent8c7dc5b91721b83fb10a236b30dfc43c68105aaf (diff)
downloadFreeBSD-src-6228fca50556976ed17efbedf4d2d2c55a014575.zip
FreeBSD-src-6228fca50556976ed17efbedf4d2d2c55a014575.tar.gz
Introduce support for Mandatory Access Control and extensible
kernel access control. Invoke the necessary MAC entry points to maintain labels on mount structures. In particular, invoke entry points for intialization and destruction in various scenarios (root, non-root). Also introduce an entry point in the boot procedure following the mount of the root file system, but prior to the start of the userland init process to permit policies to perform further initialization. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d43d52f..7c0f13c 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -519,6 +519,9 @@ start_init(void *dummy)
VREF(p->p_fd->fd_rdir);
FILEDESC_UNLOCK(p->p_fd);
VOP_UNLOCK(rootvnode, 0, td);
+#ifdef MAC
+ mac_create_root_mount(td->td_ucred, TAILQ_FIRST(&mountlist));
+#endif
if (devfs_present) {
/*
OpenPOWER on IntegriCloud