syscall.sh / x86 / setuid

setuid

set user identity

sys_setuid16(old_uid_t uid)
number23 (0x17)
abii386
entry pointsys_setuid16
sinceLinux 3.3
man pagesetuid(2)
sourceelixir.bootlin.com

Registers

registervalue
eax23, the syscall number
ebxold_uid_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/setuid