Pierre Bourdon
ac96423f53
nixosTests.sudo: fix test flakiness
...
One of the subtests in the sudo NixOS test suite was broken: instead of
running the sudo invocation as user 'test2', it was running it as root.
Since root doesn't require a password to use sudo, this was causing
random "broken pipe" errors when trying to pass it a password via stdin.
2022-01-03 00:37:26 +01:00
Robert Schütz
5624aa9f81
nixos/sudo: add option execWheelOnly
...
By setting the executable's group to wheel and permissions to 4510, we
make sure that only members of the wheel group can execute sudo.
2021-05-08 23:48:00 +02:00
Dominik Xaver Hörl
25bef2d8f9
treewide: simplify pkgs.stdenv.lib -> pkgs.lib
...
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00
Profpatsch
517be84135
small treewide: his -> theirs/its
...
SJW brigade represent. ;)
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2020-06-23 16:49:50 +02:00
Oleksii Filonenko
1043b55e4b
nixosTests.sudo: port to python
2019-11-24 22:11:04 +02:00
volth
2e979e8ceb
[bot] nixos/*: remove unused arguments in lambdas
2018-07-20 20:56:59 +00:00
Florian Klink
89d5d191b4
nixos/tests: users.(extraUsers|extraGroup->users|group)
2018-06-30 02:31:30 +02:00
Leon Schuermann
f297ddb5c9
sudo: define extra rules in Nix language ( #33905 )
2018-01-17 14:56:08 +00:00