syscall.sh / x64 / fchownat

fchownat

change ownership of a file

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

Registers

registervalue
rax260, the syscall number
rdiint dfd
rsiconst char *filename
rdxuid_t user
r10gid_t group
r8int flag
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fchownat