]> git.saurik.com Git - apple/xnu.git/blobdiff - security/mac_system.c
xnu-2422.1.72.tar.gz
[apple/xnu.git] / security / mac_system.c
index 8089caac842809cc53b8d41e5d335729e772af89..621d242449feaef3e7e879bcb9db64440188f518 100644 (file)
@@ -109,6 +109,19 @@ mac_system_check_host_priv(kauth_cred_t cred)
        return (error);
 }
 
+int
+mac_system_check_info(kauth_cred_t cred, const char *info_type)
+{
+       int error;
+
+       if (!mac_system_enforce)
+               return (0);
+
+       MAC_CHECK(system_check_info, cred, info_type);
+
+       return (error);
+}
+
 int
 mac_system_check_nfsd(kauth_cred_t cred)
 {
@@ -192,3 +205,16 @@ mac_system_check_sysctl(kauth_cred_t cred, int *name, u_int namelen,
 
        return (error);
 }
+
+int
+mac_system_check_kas_info(kauth_cred_t cred, int selector)
+{
+       int error;
+
+       if (!mac_system_enforce)
+               return (0);
+
+       MAC_CHECK(system_check_kas_info, cred, selector);
+
+       return (error);
+}