aboutsummaryrefslogtreecommitdiff
path: root/cap/modern.go
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2019-12-29 16:50:09 -0800
committerAndrew G. Morgan <morgan@kernel.org>2019-12-29 16:50:09 -0800
commit872d2ee59e29644d73b7530a27404a3d5c8ee42d (patch)
tree8fb2b38235ccc00eaafd35cb1b134312e3655e9e /cap/modern.go
parent71496f3811311ddcc0ab325594c88cacfd3e5b1a (diff)
downloadlibcap-872d2ee59e29644d73b7530a27404a3d5c8ee42d.tar.gz
Exploring compilation issues on 32-bit architectures.
Notably, arm and x86 have to use a setgroups32 syscall. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'cap/modern.go')
-rw-r--r--cap/modern.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cap/modern.go b/cap/modern.go
new file mode 100644
index 0000000..04a4919
--- /dev/null
+++ b/cap/modern.go
@@ -0,0 +1,8 @@
+// +build linux,!arm
+// +build linux,!386
+
+package cap
+
+import "syscall"
+
+var sys_setgroups_variant = uintptr(syscall.SYS_SETGROUPS)