Searched refs:mpc (Results 1 - 7 of 7) sorted by relevance

/xnu-2422.115.4/security/
H A Dmac_internal.h104 struct mac_policy_conf *mpc; member in struct:mac_policy_list_element
308 struct mac_policy_conf *mpc; \
313 mpc = mac_policy_list.entries[i].mpc; \
314 if (mpc == NULL) \
317 if (mpc->mpc_ops->mpo_ ## check != NULL) \
319 mpc->mpc_ops->mpo_ ## check (args), \
324 mpc = mac_policy_list.entries[i].mpc; \
325 if (mpc
[all...]
H A Dmac_audit.c242 struct mac_policy_conf *mpc; local
248 mpc = mac_policy_list.entries[i].mpc;
249 if (mpc == NULL)
252 if (mpc->mpc_ops->mpo_audit_check_preselect != NULL) {
253 error = mpc->mpc_ops->mpo_audit_check_preselect(cred,
260 mpc = mac_policy_list.entries[i].mpc;
261 if (mpc == NULL)
264 if (mpc
280 struct mac_policy_conf *mpc; local
[all...]
H A Dmac_data.c62 struct mac_policy_conf *mpc; local
65 if ((mpc = mac_get_mpc(handle)) != NULL)
66 error = mac_find_module_data(mpc->mpc_data, key, valp, sizep);
H A Dmac_base.c550 struct mac_policy_conf *mpc; local
571 mpc = mac_get_mpc(i);
572 if ((mpc != NULL) && (mpc->mpc_ops->mpo_policy_initbsd != NULL))
573 (*(mpc->mpc_ops->mpo_policy_initbsd))(mpc);
591 struct mac_policy_conf *mpc; local
595 mpc = mac_get_mpc(handle);
597 if (mpc->mpc_labelnames == NULL)
600 if (mpc
692 struct mac_policy_conf *mpc; local
771 mac_policy_register(struct mac_policy_conf *mpc, mac_policy_handle_t *handlep, void *xd) argument
930 struct mac_policy_conf *mpc; local
1092 struct mac_policy_conf *mpc; local
1233 struct mac_policy_conf *mpc; local
2115 struct mac_policy_conf *mpc; local
[all...]
H A Dmac_vfs.c487 struct mac_policy_conf *mpc; local
491 mpc = mac_policy_list.entries[i].mpc;
492 if (mpc == NULL)
495 mpo_cred_label_update_execve_t *hook = mpc->mpc_ops->mpo_cred_label_update_execve;
500 void *spawnattr = exec_spawnattr_getmacpolicyinfo(macextensions, mpc->mpc_name, &spawnattrlen);
507 mpc = mac_policy_list.entries[i].mpc;
508 if (mpc == NULL)
511 mpo_cred_label_update_execve_t *hook = mpc
547 struct mac_policy_conf *mpc; local
772 struct mac_policy_conf *mpc; local
[all...]
H A Dmac_policy.h2245 @param mpc MAC policy configuration
2260 struct mac_policy_conf *mpc
2264 @param mpc MAC policy configuration
2284 struct mac_policy_conf *mpc
2288 @param mpc MAC policy configuration
2306 struct mac_policy_conf *mpc
6668 int mac_policy_register(struct mac_policy_conf *mpc,
6826 #define mac_get_mpc(h) (mac_policy_list.entries[h].mpc)
/xnu-2422.115.4/bsd/kern/
H A Dpolicy_check.c44 hook_policy_init(struct mac_policy_conf *mpc) argument
46 printf("Policy '%s' = '%s' ready\n", mpc->mpc_name, mpc->mpc_fullname);
50 hook_policy_initbsd(struct mac_policy_conf *mpc) argument
53 printf("hook_policy_initbsd: %s\n", mpc->mpc_name);

Completed in 94 milliseconds