1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/tests/nixos
Théophane Hufschmitt 0e4baff868 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:34:48 +02:00
..
ca-fd-leak Add a NixOS test for the sandbox escape 2024-03-07 09:38:24 +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-04-22 15:34:48 +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-04-22 15:34:48 +02:00
github-flakes.nix Fix warnings when running checks 2023-12-18 10:20:52 -08: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