Merge pull request #7345 from joachifm/conditional-shadow-setuids
nixos: condition shadow setuid-wrappers on mutableUsers
This commit is contained in:
commit
6edc3022ef
@ -100,7 +100,9 @@ in
|
|||||||
chgpasswd = { rootOK = true; };
|
chgpasswd = { rootOK = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp"
|
security.setuidPrograms = [ "su" "chfn" ]
|
||||||
|
++ lib.optionals config.users.mutableUsers
|
||||||
|
[ "passwd" "sg" "newgrp"
|
||||||
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user