syscall.sh / sh / chown

chown

change ownership of a file

sys_chown16(const char *filename, old_uid_t user, old_gid_t group)
number182 (0xb6)
abicommon
entry pointsys_chown16
sinceLinux 5.0
man pagechown(2)
sourceelixir.bootlin.com

Registers

registervalue
r3182, the syscall number
r4const char *filename
r5old_uid_t user
r6old_gid_t group
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/chown