diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-08-26 17:29:02 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-08-26 17:29:02 +0000 |
commit | c020f7019599326dbcff045e0a90107664dc2715 (patch) | |
tree | 926e0d59368288a3182983bb72882b1c74ad82a2 /sys/security/mac/mac_net.c | |
parent | 446bd260763fd9ee3710e07af88622edb59ffe8d (diff) | |
download | FreeBSD-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_net.c')
-rw-r--r-- | sys/security/mac/mac_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_net.c b/sys/security/mac/mac_net.c index 490b492..700b029 100644 --- a/sys/security/mac/mac_net.c +++ b/sys/security/mac/mac_net.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, |