syscall.sh / sh / setreuid

setreuid

set real and/or effective user or group ID

sys_setreuid16(old_uid_t ruid, old_uid_t euid)
number70 (0x46)
abicommon
entry pointsys_setreuid16
sinceLinux 5.0
man pagesetreuid(2)
sourceelixir.bootlin.com

Registers

registervalue
r370, the syscall number
r4old_uid_t ruid
r5old_uid_t euid
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/setreuid