* [PATCH]: make /dev/cpu/<n>/cpuid world readable
@ 2009-04-23 19:32 Andre Przywara
2009-04-23 23:59 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Andre Przywara @ 2009-04-23 19:32 UTC (permalink / raw)
To: linux-hotplug
Hi,
as I don't see any security implications, to be actually useful
/dev/cpu/<n>/cpuid should be world readable. The cpuid instruction can
be called from userspace anyway, so there is nothing to hide.
The device does not support any write operation, so 0444 should suffice.
Please apply so that distributions can follow.
Regards,
Andre.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules
index 240cb3b..72e5b55 100644
--- a/rules/rules.d/50-udev-default.rules
+++ b/rules/rules.d/50-udev-default.rules
@@ -95,7 +95,7 @@ SUBSYSTEM="aoe", KERNEL="err", MODE="0440"
KERNEL="tun", NAME="net/%k", MODE="0666"
# CPU
-KERNEL="cpu[0-9]*", NAME="cpu/%n/cpuid"
+KERNEL="cpu[0-9]*", NAME="cpu/%n/cpuid", MODE="0444"
KERNEL="msr[0-9]*", NAME="cpu/%n/msr"
KERNEL="microcode", NAME="cpu/microcode", MODE="0600"
--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 488-3567-12
----to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-23 23:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23 19:32 [PATCH]: make /dev/cpu/<n>/cpuid world readable Andre Przywara
2009-04-23 23:59 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).