bcachefs: Set lost+found mode to 0700
authorJustin Husted <sigstop@gmail.com>
Sun, 10 Nov 2019 03:15:40 +0000 (19:15 -0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:31 +0000 (17:08 -0400)
commitb627c7d8f46ca74e78f6df63e8e2f15af124d1f7
treeb22fd7ada9a76e749111ee87f7d16814c143e8f5
parent0897705163b5c7eb9ecacad53c252adbbf72454a
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>
fs/bcachefs/fsck.c
fs/bcachefs/recovery.c