Re: world read permissions on /proc/irq/prof_cpu_mask and ...smp_affinity

From: Alex Riesen (Alexander.Riesen@synopsys.com)
Date: Thu Dec 05 2002 - 06:24:21 EST


On Wed, Dec 04, 2002 at 10:37:01AM -0500, Ingo Molnar wrote:
> > Is there any reason to set the permissions to 0600?
> > It makes the admin to login as root just to look on the
> > current system state.
> > Is there something against 0644?
>
> i've got nothing against 0644, 0600 was just the default paranoid value.
> (reading it could in theory mean an IO-APIC read.)
>

Just found a patch from Olaf Dietsche (2.5.40: fix chmod/chown on procfs).
Quote:
  This patch allows to change uid, gid and mode of files and directories
  located in procfs.

The patch was accepted 2.5.

This perfectly solves the problem, and in very clean way, i think.

-alex
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:22 EST