]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/acpi/custom_method.c
drm/udl: Store active framebuffer in device structure
[linux.git] / drivers / acpi / custom_method.c
index fd66a736621cff9627b7c6bec47e2079f48de684..b097ef209313fe2761850ff58c4cbeacd8c079ca 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/uaccess.h>
 #include <linux/debugfs.h>
 #include <linux/acpi.h>
+#include <linux/security.h>
 
 #include "internal.h"
 
@@ -29,6 +30,11 @@ static ssize_t cm_write(struct file *file, const char __user * user_buf,
 
        struct acpi_table_header table;
        acpi_status status;
+       int ret;
+
+       ret = security_locked_down(LOCKDOWN_ACPI_TABLES);
+       if (ret)
+               return ret;
 
        if (!(*ppos)) {
                /* parse the table header to get the table length */