]> git.saurik.com Git - apple/xnu.git/blobdiff - security/mac_iokit.c
xnu-3789.70.16.tar.gz
[apple/xnu.git] / security / mac_iokit.c
index fd78646ecb8ccba54c110e0a0fc6cbd1ea759713..d9dff9460d8bdaa069d7bd0950ae61f2a1fe7060 100644 (file)
@@ -57,7 +57,7 @@
 #include <sys/vnode_internal.h>
 #include <sys/queue.h>  
 #include <bsd/bsm/audit.h>
-#include <bsd/bsm/audit_kernel.h>
+#include <bsd/security/audit/audit.h>
 #include <bsd/sys/malloc.h>
 #include <vm/vm_kern.h>
 #include <kern/kalloc.h>
@@ -73,3 +73,77 @@ mac_iokit_check_device(char *devtype, struct mac_module_data *mdata)
        MAC_CHECK(iokit_check_device, devtype, mdata);
        return (error);
 }
+
+int
+mac_iokit_check_open(kauth_cred_t cred, io_object_t user_client, unsigned int user_client_type)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_open, cred, user_client, user_client_type);
+       return (error);
+}
+
+int
+mac_iokit_check_set_properties(kauth_cred_t cred, io_object_t registry_entry, io_object_t properties)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_set_properties, cred, registry_entry, properties);
+       return (error);
+}
+
+int
+mac_iokit_check_filter_properties(kauth_cred_t cred, io_object_t registry_entry)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_filter_properties, cred, registry_entry);
+       return (error);
+}
+
+int
+mac_iokit_check_get_property(kauth_cred_t cred, io_object_t registry_entry, const char *name)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_get_property, cred, registry_entry, name);
+       return (error);
+}
+
+int
+mac_iokit_check_hid_control(kauth_cred_t cred)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_hid_control, cred);
+       return (error);
+}
+
+int
+mac_iokit_check_nvram_delete(kauth_cred_t cred, const char *name)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_nvram_delete, cred, name);
+       return (error);
+}
+
+int
+mac_iokit_check_nvram_get(kauth_cred_t cred, const char *name)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_nvram_get, cred, name);
+       return (error);
+}
+
+int
+mac_iokit_check_nvram_set(kauth_cred_t cred, const char *name, io_object_t value)
+{
+       int error;
+
+       MAC_CHECK(iokit_check_nvram_set, cred, name, value);
+       return (error);
+}
+
+