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:
rwatson 2003-08-26 17:29:02 +00:00
parent 81d8f03e25
commit 91724dbe23
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,