3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #7345 from joachifm/conditional-shadow-setuids

nixos: condition shadow setuid-wrappers on mutableUsers
This commit is contained in:
Peter Simons 2015-04-14 13:23:19 +02:00
commit 6edc3022ef

View file

@ -100,8 +100,10 @@ in
chgpasswd = { rootOK = true; };
};
security.setuidPrograms = [ "passwd" "chfn" "su" "sg" "newgrp"
"newuidmap" "newgidmap" # new in shadow 4.2.x
security.setuidPrograms = [ "su" "chfn" ]
++ lib.optionals config.users.mutableUsers
[ "passwd" "sg" "newgrp"
"newuidmap" "newgidmap" # new in shadow 4.2.x
];
};