Get the qualifier from an ACL entry
#include <sys/acl.h> void *acl_get_qualifier( acl_entry_t entry_d );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_get_qualifier() function gets the qualifier from an ACL entry and returns a pointer to a copy of it. The data type of the pointer depends on the type of the entry:
| Entry type | Pointer type |
|---|---|
| ACL_USER | uid_t * |
| ACL_GROUP | gid_t * |
| Other types | (void *)NULL, and the function fails |
When you're finished with the copy of the qualifier, use acl_free() to release it.
A pointer to a copy of the qualifier, 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 |