Exacl   ![CRATE] ![API] ![CI] ![BUILD]

Rust library to manipulate file system access control lists (ACL) on macOS, Linux, and FreeBSD.

Example

```rust use exacl::{getfacl, setfacl, AclEntry, Perm};

// Get the ACL from "./tmp/foo". let mut acl = getfacl("./tmp/foo", None)?;

// Print the contents of the ACL. for entry in &acl { println!("{}", entry); }

// Add an ACL entry to the end. acl.push(AclEntry::allowuser("someuser", Perm::READ, None));

// Set the ACL for "./tmp/foo". setfacl(&["./tmp/foo"], &acl, None)?; ```

API

This module provides two high level functions, getfacl and setfacl.

On Linux and FreeBSD, the ACL contains entries for the default ACL, if present.

Both getfacl and setfacl work with a Vec<AclEntry>. The AclEntry structure contains five fields: