nix/tests
Théophane Hufschmitt 90e847698b 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)
(cherry picked from commit 1cc79f1343)

# Conflicts:
#	tests/functional/linux-sandbox.sh
2024-10-29 20:11:31 +00:00
..
functional Fix the access of symlinks to host files in the sandbox 2024-10-29 20:11:31 +00: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-14 15:23:37 +02:00
unit Revert "Add nix::isASCII*, locale-independent" 2023-12-13 21:09:33 +01:00