Manipulating ACLs on a file or directory

Updated: May 06, 2022

You can get or set the ACL for a file, via a file descriptor or a path.

acl_get_fd()
Get the access control list associated with a file descriptor.
acl_get_file()
Get the ACL for a given path.
acl_set_fd()
Set the access ACL for the object associated with a file descriptor.
acl_set_file()
Set the access control list for a path.