From: Vitaly Kuznetsov Date: Tue, 17 Jan 2012 12:17:22 +0000 (+0000) Subject: sysfs: change permissions for /sys from 0755 to 0555 X-Git-Tag: MMI-PSA29.97-13-9~17269^2~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c56d8a7362665d165ba992b6b7a8d6c13a26eafc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sysfs: change permissions for /sys from 0755 to 0555 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index e34f0d99ea4e..140f26a34288 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 | (KOBJ_NS_TYPE_NONE << SYSFS_NS_TYPE_SHIFT), - .s_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO, + .s_mode = S_IFDIR | S_IRUGO | S_IXUGO, .s_ino = 1, };