aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/std/seccomp_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-07 04:02:40 +0900
committerOphestra <cat@gensokyo.uk>2025-11-07 04:30:06 +0900
commit3d188ef884d6147d579e59eb8f51332bb8959ad5 (patch)
tree4d5bd73ee6e9f5c4fde3824ae2c366ea2ef702f1 /container/std/seccomp_test.go
parent34ccda84b23f381b22496fda89785f4a48802ab6 (diff)
std: separate seccomp constants
This avoids inadvertently using PNRs as syscall numbers. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/std/seccomp_test.go')
-rw-r--r--container/std/seccomp_test.go5
1 files changed, 2 insertions, 3 deletions
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}},