Message ID | 20200619124833.633575-7-seth.forshee@canonical.com |
---|---|
State | New |
Headers | show |
Series | Lockdown updates | expand |
diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index b58850389094..74fd2b7fbab2 100644 --- a/drivers/acpi/acpi_configfs.c +++ b/drivers/acpi/acpi_configfs.c @@ -31,8 +31,12 @@ static ssize_t acpi_table_aml_write(struct config_item *cfg, { const struct acpi_table_header *header = data; struct acpi_table *table; + bool locked_down = kernel_is_locked_down("modifying ACPI tables"); int ret; + if (locked_down) + return -EPERM; + table = container_of(cfg, struct acpi_table, cfg); if (table->header) {