X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/security/mac_audit.c diff --git a/security/mac_audit.c b/security/mac_audit.c index 2454b57aa..5459cf54a 100644 --- a/security/mac_audit.c +++ b/security/mac_audit.c @@ -117,12 +117,12 @@ mac_proc_check_getauid(struct proc *curp) int error; #if SECURITY_MAC_CHECK_ENFORCE - /* 21167099 - only check if we allow write */ - if (!mac_proc_enforce) - return 0; + /* 21167099 - only check if we allow write */ + if (!mac_proc_enforce) + return 0; #endif - if (!mac_proc_check_enforce(curp, MAC_PROC_ENFORCE)) + if (!mac_proc_check_enforce(curp)) return 0; cred = kauth_cred_proc_ref(curp); @@ -139,12 +139,12 @@ mac_proc_check_setauid(struct proc *curp, uid_t auid) int error; #if SECURITY_MAC_CHECK_ENFORCE - /* 21167099 - only check if we allow write */ - if (!mac_proc_enforce) - return 0; + /* 21167099 - only check if we allow write */ + if (!mac_proc_enforce) + return 0; #endif - if (!mac_proc_check_enforce(curp, MAC_PROC_ENFORCE)) - return 0; + if (!mac_proc_check_enforce(curp)) + return 0; cred = kauth_cred_proc_ref(curp); MAC_CHECK(proc_check_setauid, cred, auid); @@ -160,12 +160,12 @@ mac_proc_check_getaudit(struct proc *curp) int error; #if SECURITY_MAC_CHECK_ENFORCE - /* 21167099 - only check if we allow write */ - if (!mac_proc_enforce) - return 0; + /* 21167099 - only check if we allow write */ + if (!mac_proc_enforce) + return 0; #endif - if (!mac_proc_check_enforce(curp, MAC_PROC_ENFORCE)) - return 0; + if (!mac_proc_check_enforce(curp)) + return 0; cred = kauth_cred_proc_ref(curp); MAC_CHECK(proc_check_getaudit, cred); @@ -181,12 +181,12 @@ mac_proc_check_setaudit(struct proc *curp, struct auditinfo_addr *ai) int error; #if SECURITY_MAC_CHECK_ENFORCE - /* 21167099 - only check if we allow write */ - if (!mac_proc_enforce) - return 0; + /* 21167099 - only check if we allow write */ + if (!mac_proc_enforce) + return 0; #endif - if (!mac_proc_check_enforce(curp, MAC_PROC_ENFORCE)) - return 0; + if (!mac_proc_check_enforce(curp)) + return 0; cred = kauth_cred_proc_ref(curp); MAC_CHECK(proc_check_setaudit, cred, ai);