summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index ef404b32554a..ae18f12480b1 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -448,7 +448,7 @@ proc0_init(void *dummy __unused)
audit_cred_kproc0(p->p_ucred);
#endif
#ifdef MAC
- mac_create_proc0(p->p_ucred);
+ mac_proc_create_swapper(p->p_ucred);
#endif
td->td_ucred = crhold(p->p_ucred);
@@ -714,7 +714,7 @@ create_init(const void *udata __unused)
oldcred = initproc->p_ucred;
crcopy(newcred, oldcred);
#ifdef MAC
- mac_create_proc1(newcred);
+ mac_proc_create_init(newcred);
#endif
#ifdef AUDIT
audit_cred_proc1(newcred);