[PATCH] /proc/ppc64/lparcfg permissions

Makhlis, Lev Lev_Makhlis at bmc.com
Thu Apr 21 02:02:15 EST 2005


Hi,

Is there a good reason that /proc/ppc64/lparcfg is only readable to root?
(For comparison, any user can run lparstat(1) on AIX.)

If not, the patch below fixes it.

Signed-off-by: Lev Makhlis <lmakhlis at gmail.com>

--- linux-2.6.11.7/arch/ppc64/kernel/lparcfg.c	2005-04-07
14:57:15.000000000 -0400
+++ linux-lparcfg-mode/arch/ppc64/kernel/lparcfg.c	2005-04-20
11:23:17.000000000 -0400
@@ -559,7 +559,7 @@ struct file_operations lparcfg_fops = {
 int __init lparcfg_init(void)
 {
 	struct proc_dir_entry *ent;
-	mode_t mode = S_IRUSR;
+	mode_t mode = S_IRUGO;
 
 	/* 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