aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/container_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-19 23:41:36 +0900
committerOphestra <cat@gensokyo.uk>2026-06-20 00:16:35 +0900
commitcb618093d5a2156e6c5a03eaf8ca7d370bf33740 (patch)
tree7bf8488b7dc0c81f75c6bd96f2da5b1dca9241c2 /hst/container_test.go
parentb0b2471c0cd783c670ed7531d5512415259f551d (diff)
hst: optionally disable file placement
This works around stubborn package managers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/container_test.go')
-rw-r--r--hst/container_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hst/container_test.go b/hst/container_test.go
index 309c0a63..a44014ea 100644
--- a/hst/container_test.go
+++ b/hst/container_test.go
@@ -21,8 +21,8 @@ func TestFlagsString(t *testing.T) {
}{
{"none", 0, "none"},
{"none high", hst.FAll + 1, "none"},
- {"all", hst.FAll, "multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, cover_run, runtime, tmpdir"},
- {"all high", math.MaxUint, "multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, cover_run, runtime, tmpdir"},
+ {"all", hst.FAll, "multiarch, compat, devel, userns, net, abstract, tty, mapuid, noplace, device, cover_run, runtime, tmpdir"},
+ {"all high", math.MaxUint, "multiarch, compat, devel, userns, net, abstract, tty, mapuid, noplace, device, cover_run, runtime, tmpdir"},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
@@ -53,7 +53,7 @@ func TestContainerConfig(t *testing.T) {
{"hostnet hostabstract mapuid", &hst.ContainerConfig{Flags: hst.FHostNet | hst.FHostAbstract | hst.FMapRealUID},
`{"env":null,"filesystem":null,"shell":null,"home":null,"args":null,"host_net":true,"host_abstract":true,"map_real_uid":true}`},
{"all", &hst.ContainerConfig{Flags: hst.FAll},
- `{"env":null,"filesystem":null,"shell":null,"home":null,"args":null,"seccomp_compat":true,"devel":true,"userns":true,"host_net":true,"host_abstract":true,"tty":true,"multiarch":true,"map_real_uid":true,"device":true,"cover_run":true,"share_runtime":true,"share_tmpdir":true}`},
+ `{"env":null,"filesystem":null,"shell":null,"home":null,"args":null,"seccomp_compat":true,"devel":true,"userns":true,"host_net":true,"host_abstract":true,"tty":true,"multiarch":true,"map_real_uid":true,"noplace":true,"device":true,"cover_run":true,"share_runtime":true,"share_tmpdir":true}`},
}
for _, tc := range testCases {