syscall.sh / x64 / chmod

chmod

change permissions of a file

sys_chmod(const char *filename, umode_t mode)
number90 (0x5a)
abicommon
entry pointsys_chmod
sinceLinux 3.3
man pagechmod(2)
sourceelixir.bootlin.com

Registers

registervalue
rax90, the syscall number
rdiconst char *filename
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/chmod