1ACL_DELETE_DEF_FILE(3)   BSD Library Functions Manual   ACL_DELETE_DEF_FILE(3)
2

NAME

4     acl_delete_def_file — delete a default ACL by filename
5

LIBRARY

7     Linux Access Control Lists library (libacl, -lacl).
8

SYNOPSIS

10     #include <sys/types.h>
11     #include <sys/acl.h>
12
13     int
14     acl_delete_def_file(const char *path_p);
15

DESCRIPTION

17     The acl_delete_def_file() function deletes a default ACL from the direc‐
18     tory whose pathname is pointed to by the argument path_p.
19
20     The effective user ID of the process must match the owner of the file or
21     directory or the process must have the CAP_FOWNER capability for the
22     request to succeed.
23
24     If the argument path_p is not a directory, then the function fails. It is
25     no error if the directory whose pathname is pointed to by the argument
26     path_p does not have a default ACL.
27

RETURN VALUE

29     The acl_delete_def_file() function returns the value 0 if successful;
30     otherwise the value -1 is returned and the global variable errno is set
31     to indicate the error.
32

ERRORS

34     If any of the following conditions occur, the acl_delete_def_file() func‐
35     tion returns the value -1 and and sets errno to the corresponding value:
36
37     [EINVAL]           The file referred to by path_p is not a directory.
38
39     [ENOTSUP]          The file system on which the file identified by path_p
40                        is located does not support ACLs, or ACLs are dis‐
41                        abled.
42
43     [EPERM]            The process does not have appropriate privilege to
44                        perform the operation to delete the default ACL.
45
46     [EROFS]            This function requires modification of a file system
47                        which is currently read-only.
48

STANDARDS

50     IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
51

SEE ALSO

53     acl_get_file(3), acl_set_file(3), acl(5)
54

AUTHOR

56     Derived from the FreeBSD manual pages written by Robert N M Watson
57     <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
58     <a.gruenbacher@bestbits.at>.
59
60Linux ACL                       March 23, 2002                       Linux ACL
Impressum