1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00
nix/tests/nixos
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
..
ca-fd-leak Fix a typo in a test comment 2024-03-01 09:43:42 +01:00
containers Re-enable systemd-nspawn test 2023-09-20 09:09:01 -07:00
user-sandboxing Run the builds in a daemon-controled directory 2024-04-22 15:38:04 +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:38:04 +02:00
github-flakes.nix fetchTree cleanup 2023-10-13 14:34:23 +02:00
nix-copy-closure.nix Use the official, documented NixOS runTest interface 2023-01-20 16:23:52 +01:00
nix-copy.nix Fix nix-copy test 2023-08-30 19:35:02 -04:00
nss-preload.nix Use the official, documented NixOS runTest interface 2023-01-20 16:23:52 +01:00
remote-builds-ssh-ng.nix libstore/ssh-ng: Fix phase reporting in log files. 2023-11-03 12:30:25 +01:00
remote-builds.nix Add regression test 2023-02-10 17:51:44 +01:00
setuid.nix Use the official, documented NixOS runTest interface 2023-01-20 16:23:52 +01:00
sourcehut-flakes.nix Use "touch -h" 2023-09-19 17:21:07 +02:00
tarball-flakes.nix Use "touch -h" 2023-09-19 17:21:07 +02:00