1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-15 05:21:03 +01:00
nix/src
Théophane Hufschmitt 64d7f56eaa Run the builds in a daemon-controled directory
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.
2024-04-22 15:30:50 +02:00
..
build-remote build-remote: fix format string shenanigans 2024-03-26 13:35:06 +00:00
libcmd :print strings directly in nix repl 2024-03-09 18:13:08 -08:00
libexpr builtins.addDrvOutputDependencies: fix commentary 2024-03-29 10:56:48 +00:00
libfetchers Set the origin instead of hacking in the URL resolving 2024-04-11 17:00:15 +02:00
libmain :quit in the debugger should quit the whole program 2024-02-20 10:01:13 -08:00
libstore Run the builds in a daemon-controled directory 2024-04-22 15:30:50 +02:00
libutil Run the builds in a daemon-controled directory 2024-04-22 15:30:50 +02:00
nix nix shell: Handle output paths that are symlinks 2024-04-17 13:25:06 +00:00
nix-build Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-channel Say how many channels were unpacked 2024-02-20 19:17:18 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Handle the case where a parent of ~/.nix-defexpr is a symlink 2024-04-03 15:20:54 +00:00
nix-instantiate Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-store Add Git object hashing to the store layer 2024-02-27 11:27:34 -05:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00