From d0ddd7193407af4162312469f19bd02af4d4bce1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 14 Sep 2025 14:59:53 +0900 Subject: test/sandbox: bind /var/tmp writable This makes it possible to place markers with private tmpdir. Signed-off-by: Ophestra --- test/sandbox/case/mapuid.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/sandbox/case/mapuid.nix') diff --git a/test/sandbox/case/mapuid.nix b/test/sandbox/case/mapuid.nix index fc46466f..1c39fc19 100644 --- a/test/sandbox/case/mapuid.nix +++ b/test/sandbox/case/mapuid.nix @@ -192,6 +192,7 @@ in tmp = fs "800001f8" { } null; usr = fs "800001c0" { bin = fs "800001ed" { env = fs "80001ff" null null; } null; } null; var = fs "800001c0" { + tmp = fs "801001ff" null null; lib = fs "800001c0" { hakurei = fs "800001c0" { u0 = fs "800001c0" { @@ -253,6 +254,7 @@ in (ent "/dev" "/sys/dev" "ro,nosuid,nodev,noexec,relatime" "sysfs" "sysfs" "rw") (ent "/devices" "/sys/devices" "ro,nosuid,nodev,noexec,relatime" "sysfs" "sysfs" "rw") (ent "/dri" "/dev/dri" "rw,nosuid" "devtmpfs" "devtmpfs" ignore) + (ent "/var/tmp" "/var/tmp" "rw,nosuid,nodev,relatime" "ext4" "/dev/disk/by-label/nixos" "rw") (ent "/var/cache" "/var/cache" "rw,nosuid,nodev,relatime" "ext4" "/dev/disk/by-label/nixos" "rw") (ent "/" "/.hakurei/.ro-store" "rw,relatime" "overlay" "overlay" "ro,lowerdir=/host/nix/.ro-store:/host/nix/.rw-store/upper,redirect_dir=nofollow,userxattr") (ent "/" "/.hakurei/store" "rw,relatime" "overlay" "overlay" "rw,lowerdir=/host/nix/.ro-store:/host/nix/.rw-store/upper,upperdir=/host/tmp/.hakurei-store-rw/upper,workdir=/host/tmp/.hakurei-store-rw/work,redirect_dir=nofollow,userxattr") -- cgit v1.3.1