syscall.sh / sh / getresgid32
getresgid32
get real, effective, and saved user/group IDs
sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)
| number | 211 (0xd3) |
|---|---|
| abi | common |
| entry point | sys_getresgid |
| since | Linux 5.0 |
| man page | getresgid32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 211, 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 211
- arm 211
- m68k 211
- microblaze 211
- sparc 111
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/getresgid32