mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Change the default mode for lost+found from 01777 to 0700. The
original intention of the less restrictive permissions was to allow users to move or delete recovered files that they own. However, it is better to not create world-writable directories by default; the administrator can always pre-create lost+found if different permissions are desired. Reviewed by: mckusick
This commit is contained in:
parent
9132d5071c
commit
d6ad008082
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121258
@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "fsck.h"
|
||||
|
||||
const char *lfname = "lost+found";
|
||||
int lfmode = 01777;
|
||||
int lfmode = 0700;
|
||||
struct dirtemplate emptydir = {
|
||||
0, DIRBLKSIZ, DT_UNKNOWN, 0, "",
|
||||
0, 0, DT_UNKNOWN, 0, ""
|
||||
|
Loading…
Reference in New Issue
Block a user