[PATCH] /proc/ppc64/lparcfg permissions

will schmidt will_schmidt at vnet.ibm.com
Fri Apr 22 00:45:06 EST 2005


No reason that I'm aware of.

Acked-by: Will Schmidt <willschm at us.ibm.com>


Makhlis, Lev wrote:
> 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) {
> 
> _______________________________________________
> Linuxppc64-dev mailing list
> Linuxppc64-dev at ozlabs.org
> https://ozlabs.org/cgi-bin/mailman/listinfo/linuxppc64-dev




More information about the Linuxppc64-dev mailing list