nix-super/tests/nixos
Théophane Hufschmitt 1d3696f0fb 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-06-21 17:06:19 +02:00
..
ca-fd-leak Fix a typo in a test comment 2024-03-01 09:31:28 +01:00
containers tests/nixos/containers/containers.nix: Remove superfluous -v 2024-05-14 14:27:09 +02:00
fetch-git fetchTree: shallow git fetching by default 2024-02-28 13:27:22 +07:00
user-sandboxing Run the builds in a daemon-controled directory 2024-06-21 17:06:19 +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:06:18 +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 Honor the same set of proxy environment variables (#10611) 2024-05-06 15:39:22 -04: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 tests/nixos: make the tarball-flakes test better reflect real use cases 2024-06-05 20:14:24 +02:00