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);
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);
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);
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);