syscall.sh / x86 / access

access

check user's permissions for a file

sys_access(const char *filename, int mode)
number33 (0x21)
abii386
entry pointsys_access
sinceLinux 3.3
man pageaccess(2)
sourceelixir.bootlin.com

Registers

registervalue
eax33, the syscall number
ebxconst char *filename
ecxint mode
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/access