diff options
| author | Hans de Goede <[email protected]> | 2021-11-25 10:36:16 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-12-01 19:19:30 +0000 |
| commit | b66f86849414807745b5c2129e2de5f27a788c9f (patch) | |
| tree | a170d69bffcb423b1dc624b054a9849ea28ecf61 /tools/bpf/bpftool/prog.c | |
| parent | ACPI: EC: Relocate acpi_ec_create_query() and drop acpi_ec_delete_query() (diff) | |
| download | kernel-b66f86849414807745b5c2129e2de5f27a788c9f.tar.gz kernel-b66f86849414807745b5c2129e2de5f27a788c9f.zip | |
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
