aboutsummaryrefslogtreecommitdiff
path: root/tests/linux-sandbox.sh
AgeCommit message (Collapse)Author
2020-04-10Fix nix-build --check -K in sandbox w/o rootBruce Toll
Temporarily add user-write permission to build directory so that it can be moved out of the sandbox to the store with a .check suffix. This is necessary because the build directory has already had its permissions set read-only, but write permission is required to update the directory's parent link to move it out of the sandbox. Updated the related --check "derivation may not be deterministic" messages to consistently use the real store paths. Added test for non-root sandbox nix-build --check -K to demonstrate issue and help prevent regressions.
2019-05-12build: add test for sandboxed --checkDaiderd Jordan
2018-01-13Fix tests using user namespaces on kernels that don't have itTuomas Tynkkynen
Disable various tests if the kernel doesn't support unprivileged user namespaces (e.g. Arch Linux disables them) or disable them via a sysctl (Debian, Ubuntu). Fixes #1521 Fixes #1625
2017-11-20Test: Replace --option with the corresponding flagEelco Dolstra
2017-10-24Allow shorter syntax for chroot storesEelco Dolstra
You can now say '--store /tmp/nix' instead of '--store local?root=/tmp/nix'.
2017-08-31Rename a few configuration optionsEelco Dolstra
In particular, drop the "build-" and "gc-" prefixes which are pointless. So now you can say nix build --no-sandbox instead of nix build --no-build-use-sandbox
2017-05-08Linux sandbox: Fix compatibility with older kernelsEelco Dolstra
2017-05-02Add a test for diverted storesEelco Dolstra