Len Brown
b72aaa9506
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:16:17 +01:00
..
2020-11-10 12:39:06 +01:00
2020-10-29 10:11:16 +01:00
2020-11-05 11:51:10 +01:00
2020-11-10 12:39:11 +01:00
2020-11-05 11:51:58 +01:00
2020-10-29 10:12:18 +01:00
2020-11-05 11:51:24 +01:00
2020-10-29 10:12:07 +01:00
2020-11-05 11:51:26 +01:00
2020-10-29 10:11:29 +01:00
2020-11-05 11:51:57 +01:00
2020-11-05 11:51:22 +01:00
2020-11-10 12:38:56 +01:00
2020-11-05 11:51:41 +01:00
2020-10-29 10:11:00 +01:00
2020-11-05 11:51:32 +01:00
2020-11-05 11:51:30 +01:00
2020-10-07 11:47:41 +02:00
2020-11-10 12:39:11 +01:00
2020-11-05 11:51:40 +01:00
2020-11-05 11:51:33 +01:00
2020-11-05 11:51:56 +01:00
2020-11-05 11:51:48 +01:00
2020-10-29 10:11:48 +01:00
2020-11-05 11:51:50 +01:00
2020-11-05 11:51:43 +01:00
2020-11-05 11:51:12 +01:00
2020-11-05 11:51:54 +01:00
2020-11-05 11:51:12 +01:00
2020-11-10 12:39:01 +01:00
2020-11-05 11:51:31 +01:00
2020-11-05 11:51:33 +01:00
2020-10-29 10:12:06 +01:00
2020-10-29 10:11:52 +01:00
2020-11-05 11:51:31 +01:00
2020-11-05 11:51:33 +01:00
2020-11-05 11:51:53 +01:00
2020-09-28 12:16:13 +02:00
2020-11-05 11:51:35 +01:00
2020-10-29 10:11:32 +01:00
2020-11-05 11:51:23 +01:00
2020-11-05 11:51:53 +01:00
2020-11-10 12:39:02 +01:00
2020-11-10 12:38:59 +01:00
2020-11-05 11:51:21 +01:00
2020-10-29 10:12:07 +01:00
2020-11-04 18:09:05 +01:00
2020-11-10 12:39:06 +01:00
2020-10-29 10:11:29 +01:00
2020-11-10 12:39:04 +01:00
2020-10-29 10:12:16 +01:00
2020-11-05 11:51:50 +01:00
2020-10-29 10:11:01 +01:00
2020-11-01 12:47:10 +01:00
2020-10-29 10:11:32 +01:00
2020-10-29 10:11:58 +01:00
2020-11-05 11:51:25 +01:00
2020-11-10 21:16:17 +01:00
2020-10-29 10:11:54 +01:00
2020-10-29 10:11:52 +01:00
2020-10-29 10:11:00 +01:00
2020-11-10 12:39:02 +01:00
2020-11-05 11:51:45 +01:00
2020-11-05 11:51:26 +01:00
2020-11-05 11:51:48 +01:00
2020-11-10 12:39:08 +01:00
2020-11-10 12:39:06 +01:00
2020-10-29 10:11:28 +01:00
2020-11-05 11:51:30 +01:00
2020-10-29 10:12:20 +01:00
2020-11-10 12:39:02 +01:00
2020-11-10 12:39:06 +01:00
2020-10-29 10:11:34 +01:00
2020-11-05 11:51:08 +01:00
2020-10-29 10:11:50 +01:00
2020-11-10 12:39:09 +01:00
2020-11-05 11:51:22 +01:00
2020-11-10 12:39:10 +01:00
2020-11-05 11:51:57 +01:00
2020-10-29 10:11:57 +01:00
2020-11-05 11:51:57 +01:00
2020-11-10 12:39:03 +01:00
2020-10-29 10:11:17 +01:00
2020-11-05 11:51:34 +01:00
2020-11-05 11:51:27 +01:00
2020-11-05 11:51:20 +01:00