syscall.sh / sh / setuid32

setuid32

set user identity

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

Registers

registervalue
r3213, the syscall number
r4uid_t uid
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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