]> git.saurik.com Git - apple/xnu.git/blobdiff - security/mac_system.c
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / security / mac_system.c
index a0c00105bc41d5a4dcc80815bef62ce6e9d2a137..9f2ccf759d01a0939d9c8fb74f414d5f92cd7b15 100644 (file)
@@ -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;