Main index | Section 3 | Options |
#include <sys/types.h>
#include <sys/acl.h>
These functions may cause memory to be allocated. The caller should free any releasable memory, when the new ACL is no longer required, by calling acl_free(3) with the (void *)acl_t as an argument.
The ACL in the working storage is an independent copy of the ACL associated with the object referred to by fd. The ACL in the working storage shall not participate in any access control decisions.
Valid values for the type argument are:
ACL_TYPE_ACCESS | POSIX.1e access ACL |
ACL_TYPE_DEFAULT | POSIX.1e default ACL |
ACL_TYPE_NFS4 | NFSv4 ACL |
The ACL returned will be branded accordingly.
[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] | |
The ACL type passed is invalid for this file object. | |
[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 path_p argument points to an empty string. | |
[ENOMEM] | |
Insufficient memory available to fulfill request. | |
[EOPNOTSUPP] | |
The file system does not support ACL retrieval. | |
ACL_GET (3) | June 25, 2009 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Ken Thompson was once asked by a reporter what he would have changed about Unix if he had it all to do over again. His answer: “I would spell creat with an ‘e.'” | ” |