sandbox/seccomp: wire extra syscall

These values are only useful for libseccomp.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-07-01 00:32:08 +09:00
parent 8ef71e14d5
commit 241dc964a6

View File

@@ -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
)