1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/tests
Théophane Hufschmitt 3481a9c41d 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.

fix: do not use unknown setting

tests: remove build-dir test
2024-04-22 18:37:52 -04:00
..
functional Fix symlink handling 2024-01-21 20:53:30 +00:00
installer test: Make the installer work on old rhel versions 2023-03-31 15:29:50 +02:00
nixos Run the builds in a daemon-controled directory 2024-04-22 18:37:52 -04:00
unit Disallow store path names that are . or .. (plus opt. -) 2024-03-26 13:47:41 +01:00