mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vitty@altlinux.ru>
To: <ebiederm@xmission.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sysfs: change permissions for /sys from 0755 to 0555
Date: Tue, 20 Dec 2011 16:34:24 +0400	[thread overview]
Message-ID: <43fec27192a0a3b8ed2bd4e3af55494d@hadoop.ru> (raw)
In-Reply-To: <m162hdmgul.fsf@fess.ebiederm.org>

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.

  reply	other threads:[~2011-12-20 12:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14 15:34 Vitaly Kuznetsov
2011-12-19  2:32 ` Eric W. Biederman
2011-12-20 12:34   ` Vitaly Kuznetsov [this message]
2012-01-05  0:17 ` Greg KH
2012-01-17 12:17   ` Vitaly Kuznetsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43fec27192a0a3b8ed2bd4e3af55494d@hadoop.ru \
    --to=vitty@altlinux.ru \
    --cc=ebiederm@xmission.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome