Home
last modified time | relevance | path

Searched refs:mpc (Results 1 – 8 of 8) sorted by relevance

/xnu-11215/security/
H A Dmac_internal.h104 struct mac_policy_conf *mpc; member
231 mpc = mac_policy_list.entries[i].mpc; \
239 mpc = mac_policy_list.entries[i].mpc; \
255 #define MAC_CHECK_CALL(check, mpc) DTRACE_MACF3(mac__call__ ## check, void *, mpc, int, error, int,… argument
256 #define MAC_CHECK_RSLT(check, mpc) DTRACE_MACF2(mac__rslt__ ## check, void *, mpc, int, __step_err) argument
306 #define MAC_PERFORM_CALL(operation, mpc) DTRACE_MACF3(mac__call__ ## operation, void *, mpc, int, 0… argument
307 #define MAC_PERFORM_RSLT(operation, mpc) DTRACE_MACF2(mac__rslt__ ## operation, void *, mpc, int, 0) argument
315 if (mpc->mpc_ops->mpo_ ## operation != NULL) { \
316 MAC_PERFORM_CALL(operation, mpc); \
317 mpc->mpc_ops->mpo_ ## operation (args); \
[all …]
H A Dmac_base.c402 if ((mpc != NULL) && (mpc->mpc_ops->mpo_policy_initbsd != NULL)) { in mac_policy_initbsd()
403 (*(mpc->mpc_ops->mpo_policy_initbsd))(mpc); in mac_policy_initbsd()
738 mac_policy_list.entries[*handlep].mpc = mpc; in mac_policy_register()
749 (*(mpc->mpc_ops->mpo_policy_init))(mpc); in mac_policy_register()
754 (*(mpc->mpc_ops->mpo_policy_initbsd))(mpc); in mac_policy_register()
766 mpc->mpc_name); in mac_policy_register()
831 (*(mpc->mpc_ops->mpo_policy_destroy))(mpc); in mac_policy_unregister()
947 mpc = mac_policy_list.entries[mll->mll_handle].mpc; in mac_label_externalize()
1095 mpc = mac_policy_list.entries[mll->mll_handle].mpc; in mac_label_internalize()
1587 mpc = mac_policy_list.entries[i].mpc; in __mac_syscall()
[all …]
H A Dmac_audit.c258 struct mac_policy_conf *mpc; in mac_audit_check_preselect() local
264 mpc = mac_policy_list.entries[i].mpc; in mac_audit_check_preselect()
265 if (mpc == NULL) { in mac_audit_check_preselect()
269 if (mpc->mpc_ops->mpo_audit_check_preselect != NULL) { in mac_audit_check_preselect()
277 mpc = mac_policy_list.entries[i].mpc; in mac_audit_check_preselect()
278 if (mpc == NULL) { in mac_audit_check_preselect()
298 struct mac_policy_conf *mpc; in mac_audit_check_postselect() local
312 mpc = mac_policy_list.entries[i].mpc; in mac_audit_check_postselect()
313 if (mpc == NULL) { in mac_audit_check_postselect()
325 mpc = mac_policy_list.entries[i].mpc; in mac_audit_check_postselect()
[all …]
H A Dmac_vfs.c810 mpc = mac_policy_list.entries[i].mpc; in mac_cred_label_update_execve()
811 if (mpc == NULL) { in mac_cred_label_update_execve()
829 mpc = mac_policy_list.entries[i].mpc; in mac_cred_label_update_execve()
830 if (mpc == NULL) { in mac_cred_label_update_execve()
881 mpc = mac_policy_list.entries[i].mpc; in mac_cred_check_label_update_execve()
882 if (mpc == NULL) { in mac_cred_check_label_update_execve()
898 mpc = mac_policy_list.entries[i].mpc; in mac_cred_check_label_update_execve()
899 if (mpc == NULL) { in mac_cred_check_label_update_execve()
1232 mpc = mac_policy_list.entries[i].mpc; in mac_vnode_check_exec()
1233 if (mpc == NULL) { in mac_vnode_check_exec()
[all …]
H A Dmac_data.c62 struct mac_policy_conf *mpc; in mac_find_policy_data() local
65 if ((mpc = mac_get_mpc(handle)) != NULL) { in mac_find_policy_data()
66 error = mac_find_module_data(mpc->mpc_data, key, valp, sizep); in mac_find_policy_data()
H A Dmac_process.c939 mpo_proc_check_launch_constraints_t *hook = mpc->mpc_ops->mpo_proc_check_launch_constraints; in mac_proc_check_launch_constraints()
945 …void *spawnattr = exec_spawnattr_getmacpolicyinfo(&imgp->ip_px_smpx, mpc->mpc_name, &spawnattrlen); in mac_proc_check_launch_constraints()
H A Dmac_policy.h1771 struct mac_policy_conf *mpc
1795 struct mac_policy_conf *mpc
1817 struct mac_policy_conf *mpc
6285 int mac_policy_register(struct mac_policy_conf *mpc,
6501 #define mac_get_mpc(h) (mac_policy_list.entries[h].mpc)
/xnu-11215/bsd/kern/
H A Dpolicy_check.c45 hook_policy_init(struct mac_policy_conf *mpc) in hook_policy_init() argument
47 printf("Policy '%s' = '%s' ready\n", mpc->mpc_name, mpc->mpc_fullname); in hook_policy_init()
51 hook_policy_initbsd(struct mac_policy_conf *mpc) in hook_policy_initbsd() argument
54 printf("hook_policy_initbsd: %s\n", mpc->mpc_name); in hook_policy_initbsd()