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