[−][src]Module permissions::functions
Check for permissions at a 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.
Functions
access_syscall | Safe wrapper to the |
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. |