fix(runner): load the seccomp policy on amd64 and make the A16 bombs deterministic

This commit is contained in:
shira committed 2026-10-11 09:44:45 +03:00
1 parent e858280d91
commit 1ebd23693e
8 files changed
+68 -24

No files matched your search

+5
View File
@@ -126,6 +126,11 @@ func TestSeccompPolicyKillsNamespaceAndDebugSyscalls(t *testing.T) {
t.Errorf("policy misses %q", fragment)
}
}
// Kafel knows umount2 only as "umount" on amd64 and arm64; the name
// umount2 makes nsjail reject the whole policy, so every run would fail.
if !strings.Contains(policy, "umount,") || strings.Contains(policy, "umount2") {
t.Errorf("policy must kill umount2 under its kafel name umount:\n%s", policy)
}
}
func TestParseNsjailLog(t *testing.T) {