aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/case/pdlike.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-03 19:18:53 +0900
committerOphestra <cat@gensokyo.uk>2025-08-03 19:18:53 +0900
commit38245559dca0833dc078b982d59490eee53e168c (patch)
treeffe415b5db8fd21b3a75600428f167eeef018591 /test/sandbox/case/pdlike.nix
parent7b416d47dcb830aab5daa432cf79af5f8bbacaef (diff)
container/ops: mount dev readonly
There is usually no good reason to write to /dev. This however doesn't work in internal/app because FilesystemConfig supplied by ContainerConfig might add entries to /dev, so internal/app follows DevWritable with Remount instead. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/case/pdlike.nix')
-rw-r--r--test/sandbox/case/pdlike.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sandbox/case/pdlike.nix b/test/sandbox/case/pdlike.nix
index febf1d39..4f0e71c4 100644
--- a/test/sandbox/case/pdlike.nix
+++ b/test/sandbox/case/pdlike.nix
@@ -229,7 +229,7 @@ in
(ent "/sysroot" "/" "ro,nosuid,nodev,relatime" "tmpfs" "rootfs" "rw,uid=1000005,gid=1000005")
(ent "/" "/proc" "rw,nosuid,nodev,noexec,relatime" "proc" "proc" "rw")
(ent "/" "/.hakurei" "rw,nosuid,nodev,relatime" "tmpfs" "ephemeral" "rw,size=4k,mode=755,uid=1000005,gid=1000005")
- (ent "/" "/dev" "rw,nosuid,nodev,relatime" "tmpfs" "devtmpfs" "rw,mode=755,uid=1000005,gid=1000005")
+ (ent "/" "/dev" "ro,nosuid,nodev,relatime" "tmpfs" "devtmpfs" "rw,mode=755,uid=1000005,gid=1000005")
(ent "/null" "/dev/null" "rw,nosuid" "devtmpfs" "devtmpfs" ignore)
(ent "/zero" "/dev/zero" "rw,nosuid" "devtmpfs" "devtmpfs" ignore)
(ent "/full" "/dev/full" "rw,nosuid" "devtmpfs" "devtmpfs" ignore)