syscall.sh / sh / fchmodat

fchmodat

change permissions of a file

sys_fchmodat(int dfd, const char *filename, umode_t mode)
number306 (0x132)
abicommon
entry pointsys_fchmodat
sinceLinux 5.0
man pagefchmodat(2)
sourceelixir.bootlin.com

Registers

registervalue
r3306, the syscall number
r4int dfd
r5const char *filename
r6umode_t mode
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/fchmodat