aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/container_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-02 18:19:44 +0900
committerOphestra <cat@gensokyo.uk>2025-08-02 18:19:44 +0900
commit347a79df721e37e09b19c206f43a48e17cb97463 (patch)
tree0864ff1eab69e05a006b63effb7a38a971152497 /container/container_test.go
parent0f78864a674092097f0be320f21fcfe687a517db (diff)
container: improve clone flags readability
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container_test.go')
-rw-r--r--container/container_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/container/container_test.go b/container/container_test.go
index 62eeacfc..91fa49bb 100644
--- a/container/container_test.go
+++ b/container/container_test.go
@@ -61,6 +61,7 @@ var containerTestCases = []struct {
{"custom rules", true, true, true, false,
new(container.Ops), nil,
1, 31, []seccomp.NativeRule{{seccomp.ScmpSyscall(syscall.SYS_SETUID), seccomp.ScmpErrno(syscall.EPERM), nil}}, 0, seccomp.PresetExt},
+
{"tmpfs", true, false, false, true,
new(container.Ops).
Tmpfs(hst.Tmp, 0, 0755),
@@ -68,6 +69,7 @@ var containerTestCases = []struct {
ent("/", hst.Tmp, "rw,nosuid,nodev,relatime", "tmpfs", "ephemeral", ignore),
},
9, 9, nil, 0, seccomp.PresetStrict},
+
{"dev", true, true /* go test output is not a tty */, false, false,
new(container.Ops).
Dev("/dev").