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/security/mac/mac_framework.h | |
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/security/mac/mac_framework.h')
-rw-r--r-- | sys/security/mac/mac_framework.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h index 790b921..411fddb 100644 --- a/sys/security/mac/mac_framework.h +++ b/sys/security/mac/mac_framework.h @@ -103,8 +103,11 @@ void mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m); void mac_bpfdesc_destroy(struct bpf_d *); void mac_bpfdesc_init(struct bpf_d *); +void mac_cred_associate_nfsd(struct ucred *cred); int mac_cred_check_visible(struct ucred *cr1, struct ucred *cr2); void mac_cred_copy(struct ucred *cr1, struct ucred *cr2); +void mac_cred_create_init(struct ucred *cred); +void mac_cred_create_swapper(struct ucred *cred); void mac_cred_destroy(struct ucred *); void mac_cred_init(struct ucred *); @@ -227,7 +230,6 @@ void mac_posixshm_init(struct shmfd *); int mac_priv_check(struct ucred *cred, int priv); int mac_priv_grant(struct ucred *cred, int priv); -void mac_proc_associate_nfsd(struct ucred *cred); int mac_proc_check_debug(struct ucred *cred, struct proc *p); int mac_proc_check_sched(struct ucred *cred, struct proc *p); int mac_proc_check_setaudit(struct ucred *cred, struct auditinfo *ai); @@ -255,8 +257,6 @@ int mac_proc_check_setuid(struct proc *p, struct ucred *cred, int mac_proc_check_signal(struct ucred *cred, struct proc *p, int signum); int mac_proc_check_wait(struct ucred *cred, struct proc *p); -void mac_proc_create_init(struct ucred *cred); -void mac_proc_create_swapper(struct ucred *cred); void mac_proc_destroy(struct proc *); void mac_proc_init(struct proc *); int mac_execve_enter(struct image_params *imgp, struct mac *mac_p); |