summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_syscalls.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-08-26 17:29:02 +0000
committerrwatson <rwatson@FreeBSD.org>2003-08-26 17:29:02 +0000
commitc020f7019599326dbcff045e0a90107664dc2715 (patch)
tree926e0d59368288a3182983bb72882b1c74ad82a2 /sys/security/mac/mac_syscalls.c
parent446bd260763fd9ee3710e07af88622edb59ffe8d (diff)
downloadFreeBSD-src-c020f7019599326dbcff045e0a90107664dc2715.zip
FreeBSD-src-c020f7019599326dbcff045e0a90107664dc2715.tar.gz
Fix a mac_policy_list reference to be a mac_static_policy_list
reference: this fixes mac_syscall() for static policies when using optimized locking. Obtained from: TrustedBSD Project Sponosred by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac/mac_syscalls.c')
-rw-r--r--sys/security/mac/mac_syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_syscalls.c b/sys/security/mac/mac_syscalls.c
index 490b492..700b029 100644
--- a/sys/security/mac/mac_syscalls.c
+++ b/sys/security/mac/mac_syscalls.c
@@ -3855,7 +3855,7 @@ mac_syscall(struct thread *td, struct mac_syscall_args *uap)
return (error);
error = ENOSYS;
- LIST_FOREACH(mpc, &mac_policy_list, mpc_list) {
+ LIST_FOREACH(mpc, &mac_static_policy_list, mpc_list) {
if (strcmp(mpc->mpc_name, target) == 0 &&
mpc->mpc_ops->mpo_syscall != NULL) {
error = mpc->mpc_ops->mpo_syscall(td,
OpenPOWER on IntegriCloud