linux_dsm_epyc7002/drivers/powercap
Len Brown 949dd0104c powercap: restrict energy meter to root access
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
2020-11-10 11:40:57 -05:00
..
idle_inject.c powercap/drivers/idle_inject: Specify idle state max latency 2020-05-19 12:54:05 +02:00
intel_rapl_common.c powercap: RAPL: remove unused local MSR define 2020-05-25 10:59:29 +02:00
intel_rapl_msr.c intel_rapl: Fix module autoloading issue 2019-07-11 15:08:58 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile intel_rapl: abstract RAPL common code 2019-07-11 15:08:58 +02:00
powercap_sys.c powercap: restrict energy meter to root access 2020-11-10 11:40:57 -05:00