syscall.sh / s390x / setuid

setuid

set user identity

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

Registers

registervalue
r1213, the syscall number
r2uid_t uid
r2the 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/s390x/setuid