X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/bd504ef0e0b883cdd7917b73b3574eb9ce669905..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/security/audit/audit_syscalls.c diff --git a/bsd/security/audit/audit_syscalls.c b/bsd/security/audit/audit_syscalls.c index 359717f7b..a99464aef 100644 --- a/bsd/security/audit/audit_syscalls.c +++ b/bsd/security/audit/audit_syscalls.c @@ -825,7 +825,12 @@ int getaudit_addr(proc_t p, struct getaudit_addr_args *uap, __unused int32_t *retval) { +#if CONFIG_MACF + int error = mac_proc_check_getaudit(p); + if (error) + return (error); +#endif /* CONFIG_MACF */ WARN_IF_AINFO_ADDR_CHANGED(uap->length, sizeof(auditinfo_addr_t), "getaudit_addr(2)", "auditinfo_addr_t");