From 241dc964a6bb2116cd95a78dbbc35f9792dad554 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 1 Jul 2025 00:32:08 +0900 Subject: [PATCH] sandbox/seccomp: wire extra syscall These values are only useful for libseccomp. Signed-off-by: Ophestra --- sandbox/seccomp/syscall_extra_linux_amd64.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sandbox/seccomp/syscall_extra_linux_amd64.go diff --git a/sandbox/seccomp/syscall_extra_linux_amd64.go b/sandbox/seccomp/syscall_extra_linux_amd64.go new file mode 100644 index 0000000..19022f6 --- /dev/null +++ b/sandbox/seccomp/syscall_extra_linux_amd64.go @@ -0,0 +1,16 @@ +package seccomp + +/* +#cgo linux pkg-config: --static libseccomp + +#include +*/ +import "C" + +var syscallNumExtra = map[string]int{ + "umount": SYS_UMOUNT, +} + +const ( + SYS_UMOUNT = C.__PNR_umount +)