diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-07 13:23:01 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-07 13:23:01 +0900 |
| commit | 8ebedbd88ae2cf0da1c787fa456455065b7dc3a2 (patch) | |
| tree | b298b7492a21e8a11c64df35821626d15084ee4f /container | |
| parent | 84e8142a2de4acae0cb1e09545b172efa061a0ae (diff) | |
container: move syscall constants
These aren't missing from all targets.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container')
| -rw-r--r-- | container/syscall.go | 4 | ||||
| -rw-r--r-- | container/syscall_amd64.go | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/container/syscall.go b/container/syscall.go index 791cffa6..c30aa8f3 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 00000000..4b8e2df3 --- /dev/null +++ b/container/syscall_amd64.go @@ -0,0 +1,7 @@ +package container + +const ( + O_PATH = 0x200000 + + PR_SET_NO_NEW_PRIVS = 0x26 +) |
