1
0
Fork 0
alistair23-linux/drivers/powercap
Len Brown 19f6d91bda powercap: restrict energy meter to root access
commit 949dd0104c upstream.

Remove non-privileged user access to power data contained in
/sys/class/powercap/intel-rapl*/*/energy_uj

Non-privileged users currently have read access to power data and can
use this data to form a security attack. Some privileged
drivers/applications need read access to this data, but don't expose it
to non-privileged users.

For example, thermald uses this data to ensure that power management
works correctly. Thus removing non-privileged access is preferred over
completely disabling this power reporting capability with
CONFIG_INTEL_RAPL=n.

Fixes: 95677a9a38 ("PowerCap: Fix mode for energy counter")
Signed-off-by: Len Brown <len.brown@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 21:13:20 +01:00
..
Kconfig intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
Makefile intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
idle_inject.c powercap: idle_inject: Use higher resolution for idle injection 2019-09-03 11:33:29 +02:00
intel_rapl_common.c powercap: intel_rapl: add NULL pointer check to rapl_mmio_cpu_online() 2020-01-14 20:08:18 +01:00
intel_rapl_msr.c intel_rapl: Fix module autoloading issue 2019-07-11 15:08:58 +02:00
powercap_sys.c powercap: restrict energy meter to root access 2020-11-10 21:13:20 +01:00