diff options
author | Justin Husted <sigstop@gmail.com> | 2019-11-09 19:15:40 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:31 -0400 |
commit | b627c7d8f46ca74e78f6df63e8e2f15af124d1f7 (patch) | |
tree | b22fd7ada9a76e749111ee87f7d16814c143e8f5 /fs/bcachefs/recovery.c | |
parent | 0897705163b5c7eb9ecacad53c252adbbf72454a (diff) | |
download | lwn-b627c7d8f46ca74e78f6df63e8e2f15af124d1f7.tar.gz lwn-b627c7d8f46ca74e78f6df63e8e2f15af124d1f7.zip |
bcachefs: Set lost+found mode to 0700
For security and conformance with other filesystems, the lost+found
directory should not be world or group accessible.
Signed-off-by: Justin Husted <sigstop@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 2c441a278044..d1184bf62cae 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -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; |