syscall.sh / x86 / setgroups
setgroups
get/set list of supplementary group IDs
sys_setgroups16(int gidsetsize, old_gid_t *grouplist)
| number | 81 (0x51) |
|---|---|
| abi | i386 |
| entry point | sys_setgroups16 |
| since | Linux 3.3 |
| man page | setgroups(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 81, the syscall number |
ebx | int gidsetsize |
ecx | old_gid_t *grouplist |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 116
- arm64 159
- arm 81
- riscv64 159
- x32 1073741940
- loongarch64 159
- ppc64 81
- ppc 81
- s390x 206
- mips64 5114
- mipsn32 6114
- mipso32 4081
- alpha 80
- arc 159
- csky 159
- hexagon 159
- m68k 81
- microblaze 81
- nios2 159
- openrisc 159
- parisc 81
- sh 81
- sparc 80
- sparc64 80
- xtensa 197
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/setgroups