X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/935ed37a5c468c8a1c07408573c08b8b7ef80e8b..593a1d5fd87cdf5b46dd5fcb84467b432cea0f91:/security/mac_process.c diff --git a/security/mac_process.c b/security/mac_process.c index 20ca2fb64..4ed4d53b7 100644 --- a/security/mac_process.c +++ b/security/mac_process.c @@ -366,6 +366,21 @@ mac_proc_check_mprotect(proc_t proc, return (error); } +int +mac_proc_check_map_prot_copy_allow(proc_t proc) +{ + kauth_cred_t cred; + int error; + + if (!mac_vm_enforce) return (0); + + cred = kauth_cred_proc_ref(proc); + MAC_CHECK(proc_check_map_prot_copy_allow, cred, proc); + kauth_cred_unref(&cred); + + return (error); +} + int mac_proc_check_sched(proc_t curp, struct proc *proc) {