From e36fe77ad71454c217e459f256ccd7e10874db2f Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 22 Oct 2003 20:42:22 +0000 Subject: Rename error_select() to mac_error_select(), and unstaticize so it can be used from src/sys/security/mac/mac_*.c. Obtained from: TrustedBSD Project Sponosred by: DARPA, Network Associates Laboratories --- sys/security/mac/mac_syscalls.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/security/mac/mac_syscalls.c') diff --git a/sys/security/mac/mac_syscalls.c b/sys/security/mac/mac_syscalls.c index db3ade9..c37e975 100644 --- a/sys/security/mac/mac_syscalls.c +++ b/sys/security/mac/mac_syscalls.c @@ -235,7 +235,6 @@ SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, devfsdirents, CTLFLAG_RD, #define MAC_DEBUG_COUNTER_DEC(x) #endif -static int error_select(int error1, int error2); static int mac_policy_register(struct mac_policy_conf *mpc); static int mac_policy_unregister(struct mac_policy_conf *mpc); @@ -360,14 +359,14 @@ mac_policy_list_unbusy(void) error = 0; \ LIST_FOREACH(mpc, &mac_static_policy_list, mpc_list) { \ if (mpc->mpc_ops->mpo_ ## check != NULL) \ - error = error_select( \ + error = mac_error_select( \ mpc->mpc_ops->mpo_ ## check (args), \ error); \ } \ if ((entrycount = mac_policy_list_conditional_busy()) != 0) { \ LIST_FOREACH(mpc, &mac_policy_list, mpc_list) { \ if (mpc->mpc_ops->mpo_ ## check != NULL) \ - error = error_select( \ + error = mac_error_select( \ mpc->mpc_ops->mpo_ ## check (args), \ error); \ } \ @@ -709,8 +708,8 @@ mac_policy_unregister(struct mac_policy_conf *mpc) * Define an error value precedence, and given two arguments, selects the * value with the higher precedence. */ -static int -error_select(int error1, int error2) +int +mac_error_select(int error1, int error2) { /* Certain decision-making errors take top priority. */ -- cgit v1.1