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
This commit is contained in:
parent
81d8f03e25
commit
91724dbe23
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user