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:
Robert Watson 2003-08-26 17:29:02 +00:00
parent 1855be730c
commit a6a65b05d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119494
9 changed files with 9 additions and 9 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,