NAME
SYNOPSIS
#include <sys/acl.h>
int acl_delete_def_file(const char *path);
DESCRIPTION
RETURN VALUES
ERRORS

NAME

acl_delete_def_file - delete the default ACL for a named directory

SYNOPSIS

#include <sys/acl.h>

int acl_delete_def_file(const char *path);

DESCRIPTION

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.

RETURN VALUES

acl_delete_def_file returns 0 if successful, ­1 otherwise.

ERRORS

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 NAME_MAX.

ENOENT

ENOTDIR EPERM

The directory does not exist or path points to an empty string.

path is not a directory.

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.