aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/custom_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/custom_method.c')
-rw-r--r--drivers/acpi/custom_method.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/custom_method.c b/drivers/acpi/custom_method.c
index b2ef4c2ec955..7031307becd7 100644
--- a/drivers/acpi/custom_method.c
+++ b/drivers/acpi/custom_method.c
@@ -9,6 +9,7 @@
9#include <linux/uaccess.h> 9#include <linux/uaccess.h>
10#include <linux/debugfs.h> 10#include <linux/debugfs.h>
11#include <linux/acpi.h> 11#include <linux/acpi.h>
12#include <linux/security.h>
12 13
13#include "internal.h" 14#include "internal.h"
14 15
@@ -29,6 +30,11 @@ static ssize_t cm_write(struct file *file, const char __user * user_buf,
29 30
30 struct acpi_table_header table; 31 struct acpi_table_header table;
31 acpi_status status; 32 acpi_status status;
33 int ret;
34
35 ret = security_locked_down(LOCKDOWN_ACPI_TABLES);
36 if (ret)
37 return ret;
32 38
33 if (!(*ppos)) { 39 if (!(*ppos)) {
34 /* parse the table header to get the table length */ 40 /* parse the table header to get the table length */