mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
firstboot: change /etc/shadow access mode to 000
It appears to be customary to remove all access bits from /etc/shadow including those for the root owner), hence let's do the same.
This commit is contained in:
parent
ffc90a1196
commit
3250929b70
@ -531,6 +531,7 @@ static int write_root_shadow(const char *path, const struct spwd *p) {
|
||||
assert(p);
|
||||
|
||||
mkdir_parents(path, 0755);
|
||||
RUN_WITH_UMASK(0777)
|
||||
f = fopen(path, "wex");
|
||||
if (!f)
|
||||
return -errno;
|
||||
|
Loading…
Reference in New Issue
Block a user