diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2019-12-29 16:50:09 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2019-12-29 16:50:09 -0800 |
commit | 872d2ee59e29644d73b7530a27404a3d5c8ee42d (patch) | |
tree | 8fb2b38235ccc00eaafd35cb1b134312e3655e9e /cap/modern.go | |
parent | 71496f3811311ddcc0ab325594c88cacfd3e5b1a (diff) | |
download | libcap-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.go | 8 |
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) |