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