syscall.sh / x64 / fchmod

fchmod

change permissions of a file

sys_fchmod(unsigned int fd, umode_t mode)
number91 (0x5b)
abicommon
entry pointsys_fchmod
sinceLinux 3.3
man pagefchmod(2)
sourceelixir.bootlin.com

Registers

registervalue
rax91, the syscall number
rdiunsigned int fd
rsiumode_t mode
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/fchmod