Module permissions::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
- Bitflags definitions used in the
access_syscall
bitfield.
Functions
- Safe wrapper to the
libc::access
syscall. - Check if current process has permission to create file.
- Check if current process has permission to execute.
- Check if current process has permission to read.
- Check if current process has permission to remove file.
- Check if current process has permission to write.