diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-06-26 14:14:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-06-26 14:14:01 +0000 |
commit | 4d365126c56c98cc583a57b1f74c056f6bdd0dda (patch) | |
tree | 6ace3718f53e161903fa580eccd02a909bc33998 /sys/security/mac_stub | |
parent | 7e74b0e98ce5feca153d6580166a2c1e0b0aad02 (diff) | |
download | FreeBSD-src-4d365126c56c98cc583a57b1f74c056f6bdd0dda.zip FreeBSD-src-4d365126c56c98cc583a57b1f74c056f6bdd0dda.tar.gz |
Add a new MAC framework and policy entry point,
mpo_check_proc_setaudit_addr to be used when controlling use of
setaudit_addr(), rather than mpo_check_proc_setaudit(), which takes a
different argument type.
Reviewed by: csjp
Approved by: re (kensmith)
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r-- | sys/security/mac_stub/mac_stub.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c index 1934d6a..7bd2388 100644 --- a/sys/security/mac_stub/mac_stub.c +++ b/sys/security/mac_stub/mac_stub.c @@ -916,6 +916,13 @@ stub_check_proc_setaudit(struct ucred *cred, struct auditinfo *ai) } static int +stub_check_proc_setaudit_addr(struct ucred *cred, struct auditinfo_addr *aia) +{ + + return (0); +} + +static int stub_check_proc_setauid(struct ucred *cred, uid_t auid) { @@ -1579,6 +1586,7 @@ static struct mac_policy_ops mac_stub_ops = .mpo_check_proc_debug = stub_check_proc_debug, .mpo_check_proc_sched = stub_check_proc_sched, .mpo_check_proc_setaudit = stub_check_proc_setaudit, + .mpo_check_proc_setaudit_addr = stub_check_proc_setaudit_addr, .mpo_check_proc_setauid = stub_check_proc_setauid, .mpo_check_proc_setuid = stub_check_proc_setuid, .mpo_check_proc_seteuid = stub_check_proc_seteuid, |