posix-acl
posix-acl is a Rust library to interact with POSIX file system Access Control Lists (ACL). It wraps the operating system's C interface with a safe Rust API. The API is deliberately different from the POSIX C API to make it easier to use.
Only works on Linux. FreeBSD support seems viable as well, let me know if there is interest. macOS does not support POSIX ACLs sufficiently for this library.
Resources:
Usage example
use ;
Release history
1.0.0 (2020-03-30)
-
API change: Now using
ACLError
structured error type instead ofSimpleError
(#39)Error messages from I/O calls no longer include the file name.
-
The
PosixACL::new()
constructor no longer adds aMask
entry (#37)Mask
is only needed for "non-minimal" ACLs and automatically is added on write if necessary. -
Major reorganization of code (#35)
-
Documentation improvements
0.5.0 (2020-03-17)
-
API change: Now using
AsRef<Path>
in methods that accept paths (read_acl
etc.) (#33)This means
.as_ref()
is no longer needed or allowed when passing paths to these methods. -
Added methods
into_raw
,from_raw
for converting to/from rawacl_t
pointer (#21). Thanks to @aidanhs! -
Documentation tweaks & code cleanups
0.4.0 (2020-03-10)
This release is fully API-compatible with 0.3.0.
- Documentation expanded substantially (#27)
- Added
read_default_acl()
andwrite_default_acl()
to interact with default ACLs of directories (#18, #30). Thanks to @aidanhs! - PosixACL struct now implements the
Debug
trait (#24) - Improved test coverage and CI workflow
0.3.0 (2020-02-20)
- Update 'acl-sys' and 'libc' dependencies (#14)
0.2.0 (2020-02-08)
- Add equality trait for PosixACL (#7)
- Use GitHub Actions & Docker for CI (#6)
- Add ACL remove() method
- Make ACLEntry fields public as intended
0.1.0 (2020-02-06)
- Initial release