From 8ebedbd88ae2cf0da1c787fa456455065b7dc3a2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 7 Jul 2025 13:23:01 +0900 Subject: [PATCH] container: move syscall constants These aren't missing from all targets. Signed-off-by: Ophestra --- container/syscall.go | 4 ---- container/syscall_amd64.go | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 container/syscall_amd64.go diff --git a/container/syscall.go b/container/syscall.go index 791cffa..c30aa8f 100644 --- a/container/syscall.go +++ b/container/syscall.go @@ -6,10 +6,6 @@ import ( ) const ( - O_PATH = 0x200000 - - PR_SET_NO_NEW_PRIVS = 0x26 - CAP_SYS_ADMIN = 0x15 CAP_SETPCAP = 0x8 ) diff --git a/container/syscall_amd64.go b/container/syscall_amd64.go new file mode 100644 index 0000000..4b8e2df --- /dev/null +++ b/container/syscall_amd64.go @@ -0,0 +1,7 @@ +package container + +const ( + O_PATH = 0x200000 + + PR_SET_NO_NEW_PRIVS = 0x26 +)