Merge pull request #51270 from aneeshusa/enable-setuid-wrapper-for-chsh

nixos/shadow: create setuid wrapper for chsh
This commit is contained in:
Jörg Thalheim 2020-06-02 10:50:31 +01:00 committed by GitHub
commit 53d0dc6638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,8 +114,9 @@ in
newgrp.source = "${pkgs.shadow.out}/bin/newgrp";
newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap";
newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap";
} // (if config.users.mutableUsers then {
} // lib.optionalAttrs config.users.mutableUsers {
chsh.source = "${pkgs.shadow.out}/bin/chsh";
passwd.source = "${pkgs.shadow.out}/bin/passwd";
} else {});
};
};
}