Convert an access control list (ACL) into text
#include <sys/acl.h>
char *acl_to_text( acl_t acl,
ssize_t *len_p );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_to_text() function converts an access control list into the long text form:
tag_type:qualifier:permissions
The tag_type is user, group, other, or mask, the qualifier is the name or numeric ID of a user or group, and the permissions are in the form rwx, with a hyphen (-) replacing any permissions that aren't granted.
When you're finished with the text form of the ACL, you should call acl_free() to release it.
A pointer to the text form of the ACL, or NULL if an error occurred (errno is set).
This function is based on the withdrawn POSIX draft P1003.1e.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |