Home
last modified time | relevance | path

Searched hist:b66f8684 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/acpi/
H A Dec_sys.cb66f8684 Thu Nov 25 04:36:16 CST 2021 Hans de Goede <hdegoede@redhat.com> ACPI: EC: Mark the ec_sys write_support param as module_param_hw()

Using write_support=1 with the ec_sys module changes the mode of the
"io" debugfs file to 0600. This will cause any attempts to access it under
a kernel in lockdown mode to return -EPERM, which makes the entire ec_sys
module unusable.

Use the special module_param_hw() macro for module parameters which
may not be used while in lockdown mode, to avoid this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>