1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 21:16:02 +01:00
nix/tests
Théophane Hufschmitt 1cc79f1343 Fix the access of symlinks to host files in the sandbox
https://github.com/NixOS/nix/pull/10456 fixed the addition of symlink
store paths to the sandbox, but also made it so that the hardcoded
sandbox paths (like `/etc/hosts`) were now bind-mounted without
following the possible symlinks. This made these files unreadable if
there were symlinks (because the sandbox would now contain a symlink to
an unreachable file rather than the underlying file).
In particular, this broke FOD derivations on NixOS as `/etc/hosts` is a
symlink there.

Fix that by canonicalizing all these hardcoded sandbox paths before
adding them to the sandbox.

(cherry picked from commit acbb1523c1)
2024-10-14 14:42:45 +02:00
..
functional Fix the access of symlinks to host files in the sandbox 2024-10-14 14:42:45 +02:00
installer updated store ping to store info in files 2023-10-18 00:14:11 +05:30
nixos tests/nixos/fetchurl: drop unused variables 2024-10-13 13:06:58 +02:00
unit Disallow store path names that are . or .. (plus opt. -) 2024-01-31 18:11:17 +00:00