diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-10-28 11:33:06 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-10-28 11:33:06 +0000 |
commit | a2129bd144d95f5685e28f05aec7ce6f4efa6b04 (patch) | |
tree | c420c1b771a2ef873bf25185956726906057b6fe /sys/kern | |
parent | bbf1e3cc5ba01988dfb88601dbd3cc26ea619ad5 (diff) | |
download | FreeBSD-src-a2129bd144d95f5685e28f05aec7ce6f4efa6b04.zip FreeBSD-src-a2129bd144d95f5685e28f05aec7ce6f4efa6b04.tar.gz |
Rename three MAC entry points from _proc_ to _cred_ to reflect the fact
that they operate directly on credentials: mac_proc_create_swapper(),
mac_proc_create_init(), and mac_proc_associate_nfsd(). Update policies.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 9dc8b5f..a8abad8 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -456,7 +456,7 @@ proc0_init(void *dummy __unused) audit_cred_kproc0(p->p_ucred); #endif #ifdef MAC - mac_proc_create_swapper(p->p_ucred); + mac_cred_create_swapper(p->p_ucred); #endif td->td_ucred = crhold(p->p_ucred); @@ -736,7 +736,7 @@ create_init(const void *udata __unused) oldcred = initproc->p_ucred; crcopy(newcred, oldcred); #ifdef MAC - mac_proc_create_init(newcred); + mac_cred_create_init(newcred); #endif #ifdef AUDIT audit_cred_proc1(newcred); |