diff --git a/system/setns_linux.go b/system/setns_linux.go index 32821ee2..228e6ccd 100644 --- a/system/setns_linux.go +++ b/system/setns_linux.go @@ -11,9 +11,12 @@ import ( // We need different setns values for the different platforms and arch // We are declaring the macro here because the SETNS syscall does not exist in th stdlib var setNsMap = map[string]uintptr{ - "linux/386": 346, - "linux/amd64": 308, - "linux/arm": 374, + "linux/386": 346, + "linux/amd64": 308, + "linux/arm": 374, + "linux/ppc64": 350, + "linux/ppc64le": 350, + "linux/s390x": 339, } func Setns(fd uintptr, flags uintptr) error { diff --git a/system/syscall_linux_amd64.go b/system/syscall_linux_64.go similarity index 88% rename from system/syscall_linux_amd64.go rename to system/syscall_linux_64.go index 516c17e9..6840c377 100644 --- a/system/syscall_linux_amd64.go +++ b/system/syscall_linux_64.go @@ -1,4 +1,4 @@ -// +build linux,amd64 +// +build linux,amd64 linux,ppc64 linux,ppc64le linux,s390x package system