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 <vitty@altlinux.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Vitaly Kuznetsov 2012-01-17 12:17:22 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 2897a563a5
Коммит c56d8a7362
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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,
};