Set the qualifier for an ACL entry
#include <sys/acl.h> int acl_set_qualifier( acl_entry_t entry_d, const void *tag_qualifier_p );
- The descriptor of the entry whose qualifier you want to set.
- A pointer to the qualifier (see below).
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The acl_set_qualifier() function sets the qualifier in an ACL entry. The data type of the value refered to by the tag_qualifier_p argument depends on the entry type:
|Entry type||Data type|
|Other types||Invalid; the function fails|
The uid_t and gid_t data types are defined in <sys/types.h>.
0, or -1 if an error occurred ( errno is set).
- The entry_d argument isn't a valid descriptor for an ACL entry, the value of the tag type in the entry isn't ACL_USER or ACL_GROUP, or the value pointed to by tag_qualifier_p isn't valid.
- There wasn't enough memory to create a copy of the qualifier.
This function is based on the withdrawn POSIX draft P1003.1e.
Last modified: 2014-06-24