acl_delete_def_file - delete the default ACL for a named directory
int acl_delete_def_file(const char *path);
Deletes the default ACL associated with the directory specified in path.
The effective UID of the process must match the owner of the directory or
the process must have appropriate privilege to delete the default ACL
from path_p. If capabilities are not enabled, only the superuser can
delete the default ACL from a directory not owned by the effective UID.
If _POSIX_CAP is in effect, then the appropriate capability shall include
CAP_FOWNER. In addition, if _POSIX_MAC is in effect, then the process
must have MAC write access to the directory.
If the argument path is not a directory, then the function fails.
acl_delete_def_file returns 0 if successful, -1 otherwise.
EACCESS Search permission is denied for a component of the path
prefix or the object exists and the process does not have
appropriate access rights.
ENAMETOOLONG The length of the pathname argument is greater than
PATH_MAX, or some component of it is greater than
ENOENT The directory does not exist or path points to an empty
ENOTDIR path is not a directory.
EPERM The process does not have appropriate privilege to
perform the operation to delete the default ACL.
EROFS This function requires modification of a file system
which is currently read-only.
PPPPaaaaggggeeee 1111 [ Back ]