lkml.org 
[lkml]   [2011]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sysfs: change permissions for /sys from 0755 to 0555
Date
From
On Sun, 18 Dec 2011 18:32:18 -0800, ebiederm@xmission.com wrote:
> Vitaly Kuznetsov <vitty@altlinux.ru> writes:
>
>> There is a misleading difference between /proc and /sys permissions,
>> /proc is
>> 0555 and /sys is 0755. But
>> as it is impossible to create or unlink something in /sys it would
>> be nice to
>> have same permissions.
>
> Where does this difference matter? This doesn't look like something
> that could matter in practice. If this does matter in practice this
> change deserves a comment and a fuller explanation.

This matters only for programs which 'read' permissions instead of
'testing' them, but it's a challenge to imagine such program.

>
> The change itself seems reasonable and probably worth making as
> general
> cleanup.
>

Let's consider it cleanup-only. The main idea is: /proc and /sys
permissions must be the same as they are really the same.


\
 
 \ /
  Last update: 2011-12-20 13:37    [W:1.402 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site