syscall.sh / arm / setuid

setuid

set user identity

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

Registers

registervalue
r723, the syscall number
r0old_uid_t uid
r0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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