| Main index | Section 3 | Options |
#include <sys/types.h>
#include <sys/acl.h>
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 |
Trying to set ACL_TYPE_NFS4 with acl branded as POSIX.1e, or ACL_TYPE_ACCESS or ACL_TYPE_DEFAULT with ACL branded as NFSv4, will result in error.
| [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 for this object, or the ACL type specified in type is invalid for this object, or there is branding mismatch. | |
| [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. | |
| [ENOSPC] | |
| The directory or file system that would contain the new ACL cannot be extended, or the file system is out of file allocation resources. | |
| [EOPNOTSUPP] | |
| The file system does not support ACL retrieval. | |
| [EROFS] | |
| This function requires modification of a file system which is currently read-only. | |
| ACL_SET (3) | June 25, 2009 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
| — The Unix Haters' handbook | ||