]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/sysfs/mount.c
kernfs, sysfs, cgroup: restrict extra perm check on open to sysfs
[karo-tx-linux.git] / fs / sysfs / mount.c
index a66ad6196f59cca2f61a31c4a966d41b92497ad8..8794423f7efbe2c90408ba9dfa6cbb7e55e6c3d9 100644 (file)
@@ -63,7 +63,8 @@ int __init sysfs_init(void)
 {
        int err;
 
-       sysfs_root = kernfs_create_root(NULL, 0, NULL);
+       sysfs_root = kernfs_create_root(NULL, KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK,
+                                       NULL);
        if (IS_ERR(sysfs_root))
                return PTR_ERR(sysfs_root);