Re: [PATCH] CPU online file permission

2007-07-31 Thread Rusty Russell
On Mon, 2007-07-30 at 16:57 -0700, Andrew Morton wrote: > On Sun, 29 Jul 2007 20:56:46 -0400 > Ulrich Drepper <[EMAIL PROTECTED]> wrote: > > > Is there a reason why the "online" file in the subdirectories for the CPUs > > in /sys/devices/system isn't world-readable? > > No sane one which I can th

Re: [PATCH] CPU online file permission

2007-07-30 Thread Andrew Morton
On Sun, 29 Jul 2007 20:56:46 -0400 Ulrich Drepper <[EMAIL PROTECTED]> wrote: > Is there a reason why the "online" file in the subdirectories for the CPUs > in /sys/devices/system isn't world-readable? No sane one which I can think of. It seems that it originally sprang forth from Rusty's keyboar

[PATCH] CPU online file permission

2007-07-29 Thread Ulrich Drepper
Is there a reason why the "online" file in the subdirectories for the CPUs in /sys/devices/system isn't world-readable? I cannot imagine it to be security relevant especially now that a getcpu() syscall can be used to determine what CPUa thread runs on. The file is useful to correctly implement