syscall.sh / x86 / setuid32

setuid32

set user identity

sys_setuid(uid_t uid)
number213 (0xd5)
abii386
entry pointsys_setuid
sinceLinux 3.3
man pagesetuid32(2)
sourceelixir.bootlin.com

Registers

registervalue
eax213, the syscall number
ebxuid_t uid
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/setuid32