syscall.sh / arm64 / fchownat

fchownat

change ownership of a file

sys_fchownat(int dfd, const char *filename, uid_t user, gid_t group, int flag)
number54 (0x36)
abicommon
entry pointsys_fchownat
sinceLinux 3.7
man pagefchownat(2)
sourceelixir.bootlin.com

Registers

registervalue
x854, the syscall number
x0int dfd
x1const char *filename
x2uid_t user
x3gid_t group
x4int flag
x0the 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/arm64/fchownat