mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
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
1855be730c
commit
a6a65b05d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119494
|
@ -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 a new issue