]> Git Repo - linux.git/commitdiff
x86/microcode: Make revision and processor flags world-readable
authorJacek Tomaka <[email protected]>
Sat, 25 Aug 2018 03:50:39 +0000 (11:50 +0800)
committerThomas Gleixner <[email protected]>
Sun, 2 Sep 2018 12:09:13 +0000 (14:09 +0200)
The microcode revision is already readable for non-root users via
/proc/cpuinfo. Thus, there's no reason to keep the same information
readable by root only in /sys/devices/system/cpu/cpuX/microcode/.

Make .../processor_flags world-readable too, while at it.

Reported-by: Tim Burgess <[email protected]>
Signed-off-by: Jacek Tomaka <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
arch/x86/kernel/cpu/microcode/core.c

index b9bc8a1a584e39590e7beecdafb47773015794f7..2637ff09d6a0da6b7e25cd3942ecb05650fd51e5 100644 (file)
@@ -666,8 +666,8 @@ static ssize_t pf_show(struct device *dev,
 }
 
 static DEVICE_ATTR_WO(reload);
-static DEVICE_ATTR(version, 0400, version_show, NULL);
-static DEVICE_ATTR(processor_flags, 0400, pf_show, NULL);
+static DEVICE_ATTR(version, 0444, version_show, NULL);
+static DEVICE_ATTR(processor_flags, 0444, pf_show, NULL);
 
 static struct attribute *mc_default_attrs[] = {
        &dev_attr_version.attr,
This page took 0.062605 seconds and 4 git commands to generate.