diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-06-18 01:54:45 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-08-23 00:38:16 +0300 |
commit | f3ce5ab4904628fbe9d659b43db4bb6b609bb887 (patch) | |
tree | a0893d20160f9eafae41ab22f3e13140484a0116 /drivers/net | |
parent | 2c29e73a070be7ab1632d96ed592e97f23b6b3ec (diff) | |
download | linux-f3ce5ab4904628fbe9d659b43db4bb6b609bb887.tar.xz |
hwmon: (dell-smm) Restrict fan control and serial number to CAP_SYS_ADMIN by default
commit 7613663cc186f8f3c50279390ddc60286758001c upstream.
For security reasons ordinary user must not be able to control fan speed
via /proc/i8k by default. Some malicious software running under "nobody"
user could be able to turn fan off and cause HW problems. So this patch
changes default value of "restricted" parameter to 1.
Also restrict reading of DMI_PRODUCT_SERIAL from /proc/i8k via "restricted"
parameter. It is because non root user cannot read DMI_PRODUCT_SERIAL from
sysfs file /sys/class/dmi/id/product_serial.
Old non secure behaviour of file /proc/i8k can be achieved by loading this
module with "restricted" parameter set to 0.
Note that this patch has effects only for kernels compiled with CONFIG_I8K
and only for file /proc/i8k. Hwmon interface provided by this driver was
not changed and root access for setting fan speed was needed also before.
Reported-by: Mario Limonciello <Mario_Limonciello@dell.com>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
[bwh: Backported to 3.16: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions