NAME
aaccllvvaalliidd, aaccllvvaalliiddffddnnpp, aaccllvvaalliiddffiilleennpp, aaccllvvaalliiddlliinnkknnpp - vali-
date an ACL LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
> ##iinncclluuddee <
int aaccllvvaalliidd(aclt acl); int aaccllvvaalliiddffddnnpp(int fd, acltypet type, aclt acl); int aaccllvvaalliiddffiilleennpp(const char *pathp, acltypet type, aclt acl); int aaccllvvaalliiddlliinnkknnpp(const char *pathp, acltypet type, aclt acl);> DESCRIPTION
These functions check that the ACL referred to by the argument acl is valid. The POSIX.1e routine, aaccllvvaalliidd(), checks assumes ACLTYPEEXTENDED, and disregard of the context in which the ACL is to beused. The non-portable forms, aaccllvvaalliiddffddnnpp(), aaccllvvaalliiddffiilleennpp(),
and aaccllvvaalliiddlliinnkknnpp() allow an ACL to be checked in the context of a specific acl type, type, and file system object. In environments where additional ACL types are supported than just POSIX.1e, this makes moresense. Whereas aaccllvvaalliiddffiilleennpp() will follow the symlink if the speci-
fied path is to a symlink, aaccllvvaalliiddlliinnkknnpp() will not. The qualifier field shall be unique among all entries of the same POSIX.1e ACL facility defined tag type. The tag type field shall containvalid values including any implementation-defined values. Validation of
the values of the qualifier field is implementation-defined.
The POSIX.1e aaccllvvaalliidd() function may reorder the ACL for the purposes ofverification; the non-portable validation functions will not.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise thevalue -1 is returned and the global variable errno is set to indicate the
error. EERRRROORRSSIf any of the following conditions occur, these functions shall return -1
and set errno to the corresponding value: [EACCES] Search permission is denied for a component of the path prefix, or the object exists and the process does not have appropriate access rights. [EBADF] The fd argument is not a valid file descriptor. [EINVAL] Argument acl does not point to a valid ACL. One or more of the required ACL entries is not present in acl. The ACL contains entries that are not unique.The file system rejects the ACL based on fs-specific
semantics issues.[ENAMETOOLONG] A component of a pathname exceeded 255 characters, or
an entire path name exceeded 1023 characters.[ENOENT] The named object does not exist, or the pathp argu-
ment points to an empty string. [ENOMEM] Insufficient memory available to fulfill request. [EOPNOTSUPP] The file system does not support ACL retrieval.SEE ALSO
acl(3), aclget(3), aclinit(3), aclset(3), posix1e(3) STANDARDS POSIX.1e is described in IEEE POSIX.1e draft 17. AUTHORS Michael Smith Robert N M Watson BSD December 29, 2002 BSD