syscall.sh / sh / setgroups

setgroups

get/set list of supplementary group IDs

sys_setgroups16(int gidsetsize, old_gid_t *grouplist)
number81 (0x51)
abicommon
entry pointsys_setgroups16
sinceLinux 5.0
man pagesetgroups(2)
sourceelixir.bootlin.com

Registers

registervalue
r381, the syscall number
r4int gidsetsize
r5old_gid_t *grouplist
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/setgroups