X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/security/mac_system.c diff --git a/security/mac_system.c b/security/mac_system.c index a0c00105b..9f2ccf759 100644 --- a/security/mac_system.c +++ b/security/mac_system.c @@ -87,23 +87,6 @@ mac_system_check_acct(kauth_cred_t cred, struct vnode *vp) return error; } -int -mac_system_check_chud(kauth_cred_t cred) -{ - int error; - -#if SECURITY_MAC_CHECK_ENFORCE - /* 21167099 - only check if we allow write */ - if (!mac_system_enforce) { - return 0; - } -#endif - - MAC_CHECK(system_check_chud, cred); - - return error; -} - int mac_system_check_host_priv(kauth_cred_t cred) { @@ -224,7 +207,7 @@ mac_system_check_swapoff(kauth_cred_t cred, struct vnode *vp) int mac_system_check_sysctlbyname(kauth_cred_t cred, const char *namestring, int *name, - u_int namelen, user_addr_t oldctl, size_t oldlen, + size_t namelen, user_addr_t oldctl, size_t oldlen, user_addr_t newctl, size_t newlen) { int error;