syscall.sh / sh / setuid32
setuid32
set user identity
sys_setuid(uid_t uid)
| number | 213 (0xd5) |
|---|---|
| abi | common |
| entry point | sys_setuid |
| since | Linux 5.0 |
| man page | setuid32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 213, the syscall number |
r4 | uid_t uid |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 213
- arm 213
- m68k 213
- microblaze 213
- sparc 87
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/setuid32