Manipulating permissions in an ACL entry

Each ACL entry has a permission 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 permission set is an opaque data type, you have to use these functions to work with them:

acl_add_perm()
Add a permision to an access control list (ACL) permission set.
acl_calc_mask()
Calculate the group class mask for an access control list (ACL).
acl_clear_perms()
Clear all permissions from an ACL permission set.
acl_del_perm()
Delete a permission from an ACL permissions set.
acl_get_permset()
Get a permission set from an ACL entry.
acl_set_permset()
Set the permissions set in an ACL entry.