]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Temporary fix for lost+found file permission.
authorJustin Husted <sigstop@gmail.com>
Sun, 10 Nov 2019 03:05:24 +0000 (19:05 -0800)
committerJustin Husted <sigstop@gmail.com>
Sun, 10 Nov 2019 03:05:24 +0000 (19:05 -0800)
lost+found should not be group or world readable. This is a staging fix
pending merge with the kernel tree.

Signed-off-by: Justin Husted <sigstop@gmail.com>
libbcachefs/recovery.c

index 2c441a278044656188c3ef519c5cddcf6b0788e9..d1184bf62cae4e120cc61adf56df7351e2ff1921 100644 (file)
@@ -1013,7 +1013,7 @@ int bch2_fs_initialize(struct bch_fs *c)
                bch2_create_trans(&trans, BCACHEFS_ROOT_INO,
                                  &root_inode, &lostfound_inode,
                                  &lostfound,
-                                 0, 0, S_IFDIR|0755, 0,
+                                 0, 0, S_IFDIR|0700, 0,
                                  NULL, NULL));
        if (ret)
                goto err;