nix/tests/nixos
Théophane Hufschmitt 8c20f0fc33 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.

(cherry picked from commit 1d3696f0fb)
2024-06-21 17:16:37 +02:00
..
ca-fd-leak Fix a typo in a test comment 2024-03-01 09:31:28 +01:00
containers Re-enable systemd-nspawn test 2023-09-20 09:09:01 -07:00
fetch-git fetchTree/fetchGit: re-enable shallow fetching 2024-01-19 20:30:47 +07:00
user-sandboxing Run the builds in a daemon-controled directory 2024-06-21 17:16:37 +02:00
authorization.nix Allow to sign path as unprivileged user 2023-06-27 18:31:31 +02:00
default.nix Add a test for the user sandboxing 2024-06-21 17:16:33 +02:00
git-submodules.nix Add gitSubmodules test to github actions 2024-04-11 15:55:09 +02:00
github-flakes.nix Add test 2024-03-29 13:38:55 +01:00
gzip-content-encoding.nix test(nixos): add integration test for doubly-compressed content 2024-03-30 01:29:34 +03:00
nix-copy-closure.nix Use the official, documented NixOS runTest interface 2023-01-20 16:23:52 +01:00
nix-copy.nix Fix warnings when running checks 2023-12-18 10:20:52 -08:00
nss-preload.nix Fix warnings when running checks 2023-12-18 10:20:52 -08:00
remote-builds-ssh-ng.nix nixos/tests/remote-builds*: Format 2024-01-22 18:47:59 +01:00
remote-builds.nix nixos/tests/remote-builds*: Format 2024-01-22 18:47:59 +01:00
setuid.nix Use the official, documented NixOS runTest interface 2023-01-20 16:23:52 +01:00
sourcehut-flakes.nix Fix warnings when running checks 2023-12-18 10:20:52 -08:00
tarball-flakes.nix Use "touch -h" 2023-09-19 17:21:07 +02:00