Home
last modified time | relevance | path

Searched refs:mpc_ops (Results 1 – 7 of 7) sorted by relevance

/xnu-8020.101.4/security/
H A Dmac_audit.c281 if (mpc->mpc_ops->mpo_audit_check_preselect != NULL) { in mac_audit_check_preselect()
282 error = mpc->mpc_ops->mpo_audit_check_preselect(cred, in mac_audit_check_preselect()
294 if (mpc->mpc_ops->mpo_audit_check_preselect != NULL) { in mac_audit_check_preselect()
295 error = mpc->mpc_ops->mpo_audit_check_preselect(cred, in mac_audit_check_preselect()
329 if (mpc->mpc_ops->mpo_audit_check_postselect != NULL) { in mac_audit_check_postselect()
330 mac_error = mpc->mpc_ops->mpo_audit_check_postselect(cred, in mac_audit_check_postselect()
342 if (mpc->mpc_ops->mpo_audit_check_postselect != NULL) { in mac_audit_check_postselect()
343 mac_error = mpc->mpc_ops->mpo_audit_check_postselect(cred, in mac_audit_check_postselect()
H A Dmac_internal.h264 if (mpc->mpc_ops->mpo_ ## check != NULL) { \
266 int __step_err = mpc->mpc_ops->mpo_ ## check (args); \
283 if (mpc->mpc_ops->mpo_ ## check != NULL) { \
285 int __step_res = mpc->mpc_ops->mpo_ ## check (args); \
312 if (mpc->mpc_ops->mpo_ ## operation != NULL) { \
314 mpc->mpc_ops->mpo_ ## operation (args); \
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()
632 if (mpc->mpc_ops == NULL) { in mac_policy_register()
747 if (mpc->mpc_ops->mpo_policy_init != NULL) { in mac_policy_register()
748 (*(mpc->mpc_ops->mpo_policy_init))(mpc); in mac_policy_register()
751 if (mac_late && mpc->mpc_ops->mpo_policy_initbsd != NULL) { in mac_policy_register()
753 (*(mpc->mpc_ops->mpo_policy_initbsd))(mpc); in mac_policy_register()
829 if (mpc->mpc_ops->mpo_policy_destroy != NULL) { in mac_policy_unregister()
830 (*(mpc->mpc_ops->mpo_policy_destroy))(mpc); in mac_policy_unregister()
951 ((const char *)mpc->mpc_ops + mpo_externalize_off); in mac_label_externalize()
[all …]
H A Dmac_vfs.c492 if (mpc->mpc_ops->mpo_vnode_notify_swap != NULL) { in mac_vnode_notify_rename()
494 mpc->mpc_ops->mpo_vnode_notify_swap(cred, fvp, mac_vnode_label(fvp), in mac_vnode_notify_rename()
497 } else if (mpc->mpc_ops->mpo_vnode_notify_rename != NULL) { in mac_vnode_notify_rename()
500 mpc->mpc_ops->mpo_vnode_notify_rename(cred, fvp, mac_vnode_label(fvp), in mac_vnode_notify_rename()
502 mpc->mpc_ops->mpo_vnode_notify_rename(cred, tvp, mac_vnode_label(tvp), in mac_vnode_notify_rename()
506 } else if (mpc->mpc_ops->mpo_vnode_notify_rename != NULL) { in mac_vnode_notify_rename()
508 mpc->mpc_ops->mpo_vnode_notify_rename(cred, fvp, mac_vnode_label(fvp), in mac_vnode_notify_rename()
840 mpo_cred_label_update_execve_t *hook = mpc->mpc_ops->mpo_cred_label_update_execve; in mac_cred_label_update_execve()
859 mpo_cred_label_update_execve_t *hook = mpc->mpc_ops->mpo_cred_label_update_execve; in mac_cred_label_update_execve()
911 mpo_cred_check_label_update_execve_t *hook = mpc->mpc_ops->mpo_cred_check_label_update_execve; in mac_cred_check_label_update_execve()
[all …]
H A Dmac_policy.h6214 const struct mac_policy_ops *mpc_ops; /** operation vector */ member
6394 .mpc_ops = mpops, \
/xnu-8020.101.4/bsd/kern/
H A Dpolicy_check.c533 .mpc_ops = &policy_ops, /* policy operations */
H A Dkern_guarded.c1606 .mpc_ops = &vng_policy_ops,