Skip to content

Commit

Permalink
sysfs: change permissions for /sys from 0755 to 0555
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Vitaly Kuznetsov authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent 2897a56 commit c56d8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/sysfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit c56d8a7

Please sign in to comment.