mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
nixos/shadow: setuid wrappers for new{uid,gid}map
These utils are not related to user management, so they should be available even if immutable users are enabled.
This commit is contained in:
parent
80dbdba6dd
commit
51b165c7d2
@ -103,10 +103,9 @@ in
|
||||
};
|
||||
|
||||
security.setuidPrograms = [ "su" "chfn" ]
|
||||
++ [ "newuidmap" "newgidmap" ] # new in shadow 4.2.x
|
||||
++ lib.optionals config.users.mutableUsers
|
||||
[ "passwd" "sg" "newgrp"
|
||||
"newuidmap" "newgidmap" # new in shadow 4.2.x
|
||||
];
|
||||
[ "passwd" "sg" "newgrp" ];
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user