x86/microcode: Make revision and processor flags world-readable
authorJacek Tomaka <jacek.tomaka@poczta.fm>
Sat, 25 Aug 2018 03:50:39 +0000 (11:50 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 2 Sep 2018 12:09:13 +0000 (14:09 +0200)
commitf4661d293eb2d01dfc742982761a36fafe456d46
tree5c1dd172fc48a938cb96bc5d3580e33a3d5c00dc
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
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
arch/x86/kernel/cpu/microcode/core.c