mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
base-filesystem: pick more conservative access mode for /root/
Let's not allow anyone to look into /root/ if we create it via the base-filesystem logic. i.e. change 0755 → 0750 as default access mode for /root/, in case we create it if it happens to be missing. (cherry picked from commit 93cbc9ca12043a13a2a80087a00012e009216f13) (cherry picked from commit 64be8d8a345424021d837e922679816595d4b9ee)
This commit is contained in:
parent
8b674cf43f
commit
296bd564cc
@ -31,7 +31,7 @@ typedef struct BaseFilesystem {
|
||||
static const BaseFilesystem table[] = {
|
||||
{ "bin", 0, "usr/bin\0", NULL },
|
||||
{ "lib", 0, "usr/lib\0", NULL },
|
||||
{ "root", 0755, NULL, NULL, true },
|
||||
{ "root", 0750, NULL, NULL, true },
|
||||
{ "sbin", 0, "usr/sbin\0", NULL },
|
||||
{ "usr", 0755, NULL, NULL },
|
||||
{ "var", 0755, NULL, NULL },
|
||||
|
Loading…
x
Reference in New Issue
Block a user