summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJacek Tomaka <jacek.tomaka@poczta.fm>2018-08-25 11:50:39 +0800
committerThomas Gleixner <tglx@linutronix.de>2018-09-02 14:09:13 +0200
commitf4661d293eb2d01dfc742982761a36fafe456d46 (patch)
tree5c1dd172fc48a938cb96bc5d3580e33a3d5c00dc /arch
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
downloadlinux-f4661d293eb2d01dfc742982761a36fafe456d46.tar.gz
linux-f4661d293eb2d01dfc742982761a36fafe456d46.tar.bz2
linux-f4661d293eb2d01dfc742982761a36fafe456d46.zip
x86/microcode: Make revision and processor flags world-readable
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 <timb@dug.com> Signed-off-by: Jacek Tomaka <jacek.tomaka@poczta.fm> Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20180825035039.14409-1-jacekt@dugeo.com
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/microcode/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index b9bc8a1a584e..2637ff09d6a0 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -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,