]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/sysfs/dir.c
kernfs: add @mode to kernfs_create_dir[_ns]()
[karo-tx-linux.git] / fs / sysfs / dir.c
index aa007401bfc9058f785f82573de3fd483d83a421..ee0d761c3179ca06efcdebe619eb107214079ba7 100644 (file)
@@ -73,7 +73,8 @@ int sysfs_create_dir_ns(struct kobject *kobj, const void *ns)
        if (!parent)
                return -ENOENT;
 
-       kn = kernfs_create_dir_ns(parent, kobject_name(kobj), kobj, ns);
+       kn = kernfs_create_dir_ns(parent, kobject_name(kobj),
+                                 S_IRWXU | S_IRUGO | S_IXUGO, kobj, ns);
        if (IS_ERR(kn)) {
                if (PTR_ERR(kn) == -EEXIST)
                        sysfs_warn_dup(parent, kobject_name(kobj));