syscall.sh / microblaze / 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 |
|---|---|
r12 | 213, the syscall number |
r5 | uid_t uid |
r3 | the return value |
Then run brki r14,8 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/setuid32