syscall.sh / sh / setresgid32
setresgid32
set real, effective, and saved user or group ID
sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid)
| number | 210 (0xd2) |
|---|---|
| abi | common |
| entry point | sys_setresgid |
| since | Linux 5.0 |
| man page | setresgid32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 210, the syscall number |
r4 | gid_t rgid |
r5 | gid_t egid |
r6 | gid_t sgid |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 210
- arm 210
- m68k 210
- microblaze 210
- sparc 110
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/setresgid32