1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 13:31:48 +02:00
nix/src
Théophane Hufschmitt e919c0bf8f 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:38:04 +02:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd add deprecation warnings in documentation 2023-11-27 14:08:16 +01:00
libexpr builtins.addDrvOutputDependencies: fix commentary 2024-03-29 10:56:43 +00:00
libfetchers Merge pull request #9283 from obsidiansystems/mememory-source-accessor 2023-11-06 19:51:02 +01:00
libmain Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
libstore Run the builds in a daemon-controled directory 2024-04-22 15:38:04 +02:00
libutil Run the builds in a daemon-controled directory 2024-04-22 15:38:04 +02:00
nix path-info: print correct path when using nix path-info --store file://... --all --json 2024-04-10 17:37:34 +00:00
nix-build Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-channel Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Remove stray executable permissions on source files 2023-11-02 09:24:21 +01:00
nix-env nix-env: Use state.mkList, required for correct stats 2023-11-17 10:23:32 +01:00
nix-instantiate Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-store Split up util.{hh,cc} 2023-11-05 12:20:02 -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