From 3d188ef884d6147d579e59eb8f51332bb8959ad5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 7 Nov 2025 04:02:40 +0900 Subject: std: separate seccomp constants This avoids inadvertently using PNRs as syscall numbers. Signed-off-by: Ophestra --- container/std/seccomp_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'container/std/seccomp_test.go') diff --git a/container/std/seccomp_test.go b/container/std/seccomp_test.go index 91a718d3..ecf64a96 100644 --- a/container/std/seccomp_test.go +++ b/container/std/seccomp_test.go @@ -5,7 +5,6 @@ import ( "errors" "math" "reflect" - "syscall" "testing" "hakurei.app/container/std" @@ -20,8 +19,8 @@ func TestScmpSyscall(t *testing.T) { want std.ScmpSyscall err error }{ - {"select", `"select"`, syscall.SYS_SELECT, nil}, - {"clone3", `"clone3"`, std.SYS_CLONE3, nil}, + {"epoll_create1", `"epoll_create1"`, std.SNR_EPOLL_CREATE1, nil}, + {"clone3", `"clone3"`, std.SNR_CLONE3, nil}, {"oob", `-2147483647`, -math.MaxInt32, &json.UnmarshalTypeError{Value: "number", Type: reflect.TypeFor[string](), Offset: 11}}, -- cgit v1.3.1