syscall.sh / openrisc / setuid

setuid

set user identity

sys_setuid(uid_t uid)
number146 (0x92)
abicommon
entry pointsys_setuid
sinceLinux 3.7
man pagesetuid(2)
sourceelixir.bootlin.com

Registers

registervalue
r11146, the syscall number
r3uid_t uid
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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