aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-07-01 00:32:08 +0900
committerOphestra <cat@gensokyo.uk>2025-07-01 00:32:08 +0900
commit241dc964a6bb2116cd95a78dbbc35f9792dad554 (patch)
treebeb87b5f523e821da03e561bbcf9d64de5f149bc
parent8ef71e14d511d0b85bc9e419aee4c43147a4eefa (diff)
sandbox/seccomp: wire extra syscall
These values are only useful for libseccomp. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--sandbox/seccomp/syscall_extra_linux_amd64.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/sandbox/seccomp/syscall_extra_linux_amd64.go b/sandbox/seccomp/syscall_extra_linux_amd64.go
new file mode 100644
index 00000000..19022f65
--- /dev/null
+++ b/sandbox/seccomp/syscall_extra_linux_amd64.go
@@ -0,0 +1,16 @@
+package seccomp
+
+/*
+#cgo linux pkg-config: --static libseccomp
+
+#include <seccomp.h>
+*/
+import "C"
+
+var syscallNumExtra = map[string]int{
+ "umount": SYS_UMOUNT,
+}
+
+const (
+ SYS_UMOUNT = C.__PNR_umount
+)