From: Vitaly Kuznetsov <vitty@altlinux.ru>
To: Greg Kroah-Hartman <gregkh@suse.de>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] sysfs: change permissions for /sys from 0755 to 0555
Date: Wed, 14 Dec 2011 19:34:50 +0400 [thread overview]
Message-ID: <1b3c733f0412e214042566bac2c3f3e6@hadoop.ru> (raw)
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.
Signed-off-by: Vitaly Kuznetsov <vitty@altlinux.ru>
---
fs/sysfs/mount.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index 4974995..9d56fdd 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -36,7 +36,7 @@ struct sysfs_dirent sysfs_root = {
.s_name = "",
.s_count = ATOMIC_INIT(1),
.s_flags = SYSFS_DIR,
- .s_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO,
+ .s_mode = S_IFDIR | S_IRUGO | S_IXUGO,
.s_ino = 1,
};
--
1.7.7.4
next reply other threads:[~2011-12-14 15:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 15:34 Vitaly Kuznetsov [this message]
2011-12-19 2:32 ` Eric W. Biederman
2011-12-20 12:34 ` Vitaly Kuznetsov
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=1b3c733f0412e214042566bac2c3f3e6@hadoop.ru \
--to=vitty@altlinux.ru \
--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
all inboxes | Powered by JetHome®