Module functions

Source
Expand description

Permission checks at some path using access_syscall.

Having permission of reading, writing, executing or deleting a file does not guarantee success in doing so, it is unlikely but IO can fail.

Also be careful with TOCTOU race conditions, when you have outdated file system information that has changed since the last check.

Modules§

consts
Bitflags definitions used in the access_syscall bitfield.

Functions§

access_syscall
Safe wrapper to the libc::access syscall.
is_creatable
Check if current process has permission to create file.
is_executable
Check if current process has permission to execute.
is_readable
Check if current process has permission to read.
is_removable
Check if current process has permission to remove file.
is_writable
Check if current process has permission to write.