From becaf8b6d7151971907ff65f338afa038f021c92 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 5 Nov 2025 04:48:05 +0900 Subject: std: relocate seccomp lookup tables This should enable resolving NativeRule in hst. Signed-off-by: Ophestra --- container/seccomp/syscall_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'container/seccomp/syscall_test.go') diff --git a/container/seccomp/syscall_test.go b/container/seccomp/syscall_test.go index e385a12c..57a73265 100644 --- a/container/seccomp/syscall_test.go +++ b/container/seccomp/syscall_test.go @@ -2,21 +2,21 @@ package seccomp import ( "testing" + + "hakurei.app/container/std" ) func TestSyscallResolveName(t *testing.T) { t.Parallel() - for name, want := range Syscalls() { + for name, want := range std.Syscalls() { t.Run(name, func(t *testing.T) { t.Parallel() - if got := syscallResolveName(name); got != want { + // this checks the std implementation against libseccomp. + if got, ok := syscallResolveName(name); !ok || got != want { t.Errorf("syscallResolveName(%q) = %d, want %d", name, got, want) } - if got, ok := SyscallResolveName(name); !ok || got != want { - t.Errorf("SyscallResolveName(%q) = %d, want %d", name, got, want) - } }) } } -- cgit v1.3.1