Manipulating permissions in an ACL entry

Each ACL entry has a permissions set. These functions work with these sets and the individual permissions.

The permissions are represented by the constants ACL_READ, ACL_EXECUTE, and ACL_WRITE. Because a permissions set is an opaque data type, you have to use these functions to work with them:

acl_add_perm()
Add a permission to an access control list (ACL) permissions set.
acl_calc_mask()
Calculate the group class mask for an access control list (ACL).
acl_clear_perms()
Clear all permissions from an ACL permissions set.
acl_delete_perm()
Delete a permission from an ACL permissions set.
acl_get_perm_np()
Test whether a given permission is present in an ACL permissions set.
acl_get_permset()
Get a permissions set from an ACL entry.
acl_set_permset()
Store a permissions set in an ACL entry.