[RFC] patch to allow world readable /proc/ppc64/lparcfg

Wim Coekaerts wim.coekaerts at oracle.com
Tue Sep 6 13:22:47 EST 2005


Hi - resent my mailserver is having issues

like to be able to read the lparcfg data from any user so we can make
"intelligent" decisions based on underlying attributes when running in
lpars. yes there's software that likes to do this :) and runs as
non-root. I'm not sure if anyone has any issues with this but I'd say it
would be pretty harmless. if ok please apply this just clearly allows
all read of /proc/ppc64/lparcfg

it's very similar to say VM where you can get CP to provide feedback of
the real hardware inside a VM guest

Signed-off-by: Wim Coekaerts <wim.coekaerts at oracle.com>

--- /tmp/l/arch/ppc64/kernel/lparcfg.c	2005-09-01 16:36:50.000000000 -0700
+++ linux-2.6.13/arch/ppc64/kernel/lparcfg.c	2005-09-01 16:37:28.000000000 -0700
@@ -568,7 +568,7 @@
 int __init lparcfg_init(void)
 {
 	struct proc_dir_entry *ent;
-	mode_t mode = S_IRUSR;
+	mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
 
 	/* Allow writing if we have FW_FEATURE_SPLPAR */
 	if (cur_cpu_spec->firmware_features & FW_FEATURE_SPLPAR) {





More information about the Linuxppc64-dev mailing list