syscall.sh / sh / setgroups32
setgroups32
get/set list of supplementary group IDs
sys_setgroups(int gidsetsize, gid_t *grouplist)
| number | 206 (0xce) |
|---|---|
| abi | common |
| entry point | sys_setgroups |
| since | Linux 5.0 |
| man page | setgroups32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 206, the syscall number |
r4 | int gidsetsize |
r5 | gid_t *grouplist |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 206
- arm 206
- m68k 206
- microblaze 206
- sparc 82
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/setgroups32