aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--container/seccomp/libseccomp.go6
-rw-r--r--container/seccomp/syscall_extra_linux_amd64.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/container/seccomp/libseccomp.go b/container/seccomp/libseccomp.go
index a43b8f23..c7a3b670 100644
--- a/container/seccomp/libseccomp.go
+++ b/container/seccomp/libseccomp.go
@@ -4,6 +4,7 @@ package seccomp
#cgo linux pkg-config: --static libseccomp
#include <libseccomp-helper.h>
+#include <sys/personality.h>
*/
import "C"
import (
@@ -14,6 +15,11 @@ import (
"unsafe"
)
+const (
+ PER_LINUX = C.PER_LINUX
+ PER_LINUX32 = C.PER_LINUX32
+)
+
var (
ErrInvalidRules = errors.New("invalid native rules slice")
)
diff --git a/container/seccomp/syscall_extra_linux_amd64.go b/container/seccomp/syscall_extra_linux_amd64.go
index 4b83a876..75e84b68 100644
--- a/container/seccomp/syscall_extra_linux_amd64.go
+++ b/container/seccomp/syscall_extra_linux_amd64.go
@@ -4,15 +4,9 @@ package seccomp
#cgo linux pkg-config: --static libseccomp
#include <seccomp.h>
-#include <sys/personality.h>
*/
import "C"
-const (
- PER_LINUX = C.PER_LINUX
- PER_LINUX32 = C.PER_LINUX32
-)
-
var syscallNumExtra = map[string]int{
"umount": SYS_UMOUNT,
"subpage_prot": SYS_SUBPAGE_PROT,