New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/doas: let wheel keepEnv by default #88546
Conversation
Prior to this change, the behavior was inconsistent with the `sudo` module; now, `doas` follows in `sudo`'s footsteps by permitting members of `wheel` to keep their environment by default.
@ofborg test doas |
Does this cause |
I believe this propagates the env by default, which is consistent with Without
With
|
I'm confused.
|
Is |
Yes it is. |
Okay, so be it. My understanding, still, is that That seems in contrast to what this PR will do, which will cause However, maybe this is a non-issue. Is it typical for |
I personally think this is fine, but open to hearing reasons why this might be a bad idea. After all, I could just add |
I'd prefer to not introduce this change; it makes the default behaviour of |
In particular it can lead to a program running as root deciding it should definitely try to create a bunch of files in your user's home directory and generally inheriting resources it ought not to. |
Those are the kind of reasons I was looking for (or maybe not looking for, depending on how you look at it). I agree with @emilazy, and will instead just keep the change ( Thanks all for the input. |
Prior to this change, the behavior was inconsistent with the
sudo
module; now,
doas
follows insudo
's footsteps by permitting membersof
wheel
to keep their environment by default.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)