programs: sane-sudo-redirect: disable sandbox

This commit is contained in:
Colin 2024-02-19 17:09:27 +00:00
parent f785ccd351
commit 41b1a013d7
2 changed files with 4 additions and 1 deletions

View File

@ -128,6 +128,9 @@ in
extraPaths = [ "/nix/var/nix" ];
};
# if `tee` isn't trustworthy we have bigger problems
"sane-scripts.sudo-redirect".sandbox.enable = false;
"sane-scripts.which".sandbox = {
method = "bwrap";
wrapperType = "wrappedDerivation";

View File

@ -14,4 +14,4 @@
# $ sudo do_thing | sane-sudo-redirect /into/file
# ```
exec sudo tee $@ > /dev/null
exec sudo tee "$@" > /dev/null