syscall.sh / sh / setgid32
setgid32
set group identity
sys_setgid(gid_t gid)
| number | 214 (0xd6) |
|---|---|
| abi | common |
| entry point | sys_setgid |
| since | Linux 5.0 |
| man page | setgid32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 214, the syscall number |
r4 | gid_t gid |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 214
- arm 214
- m68k 214
- microblaze 214
- sparc 89
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/setgid32