From cd5959fe5ab04786cd5dee3cf09f725229ae7c7b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 13:35:48 +0900 Subject: ext: isolate from container/std These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden. Signed-off-by: Ophestra --- container/seccomp/libseccomp.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'container/seccomp/libseccomp.go') diff --git a/container/seccomp/libseccomp.go b/container/seccomp/libseccomp.go index afb1848b..3df9ff8d 100644 --- a/container/seccomp/libseccomp.go +++ b/container/seccomp/libseccomp.go @@ -16,6 +16,7 @@ import ( "unsafe" "hakurei.app/container/std" + "hakurei.app/ext" ) // ErrInvalidRules is returned for a zero-length rules slice. @@ -219,9 +220,9 @@ const ( // syscallResolveName resolves a syscall number by name via seccomp_syscall_resolve_name. // This function is only for testing the lookup tables and included here for convenience. -func syscallResolveName(s string) (num std.ScmpSyscall, ok bool) { +func syscallResolveName(s string) (num ext.SyscallNum, ok bool) { v := C.CString(s) - num = std.ScmpSyscall(C.seccomp_syscall_resolve_name(v)) + num = ext.SyscallNum(C.seccomp_syscall_resolve_name(v)) C.free(unsafe.Pointer(v)) ok = num != C.__NR_SCMP_ERROR return -- cgit v1.3.1