mirror of
https://github.com/NixOS/nix
synced 2024-10-18 14:32:45 -04:00
0e4baff868
Instead of running the builds under `$TMPDIR/{unique-build-directory-owned-by-the-build-user}`, run them under `$TMPDIR/{unique-build-directory-owned-by-the-daemon}/{subdir-owned-by-the-build-user}` where the build directory is only readable and traversable by the daemon user. This achieves two things: 1. It prevents builders from making their build directory world-readable (or even writeable), which would allow the outside world to interact with them. 2. It prevents external processes running as the build user (either because that somehow leaked, maybe as a consequence of 1., or because `build-users` isn't in use) from gaining access to the build directory. |
||
---|---|---|
.. | ||
ca-fd-leak | ||
containers | ||
fetch-git | ||
user-sandboxing | ||
authorization.nix | ||
default.nix | ||
github-flakes.nix | ||
nix-copy-closure.nix | ||
nix-copy.nix | ||
nss-preload.nix | ||
remote-builds-ssh-ng.nix | ||
remote-builds.nix | ||
setuid.nix | ||
sourcehut-flakes.nix | ||
tarball-flakes.nix |