resetting manifest requested domain to floor
[platform/upstream/acl.git] / man / man3 / acl_delete_def_file.3
1 .\" Access Control Lists manual pages
2 .\"
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual.  If not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\"
24 .Dd March 23, 2002
25 .Dt ACL_DELETE_DEF_FILE 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_delete_def_file
29 .Nd delete a default ACL by filename
30 .Sh LIBRARY
31 Linux Access Control Lists library (libacl, \-lacl).
32 .Sh SYNOPSIS
33 .In sys/types.h
34 .In sys/acl.h
35 .Ft int
36 .Fn acl_delete_def_file "const char *path_p"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_delete_def_file
40 function deletes a default ACL from the directory whose pathname is pointed to by the argument
41 .Va path_p .
42 .Pp
43 The effective user ID of the process must match the owner of the file or
44 directory or the process must have the CAP_FOWNER capability for the
45 request to succeed.
46 .Pp
47 If the argument
48 .Va path_p
49 is not a directory, then the function fails. It is no error if the directory whose pathname is pointed to by the argument
50 .Va path_p
51 does not have a default ACL.
52 .Sh RETURN VALUE
53 .Rv -std acl_delete_def_file
54 .Sh ERRORS
55 If any of the following conditions occur, the
56 .Fn acl_delete_def_file
57 function returns the value
58 .Li -1
59 and and sets
60 .Va errno
61 to the corresponding value:
62 .Bl -tag -width Er
63 .It Bq Er EINVAL
64 The file referred to by
65 .Va path_p
66 is not a directory.
67 .It Bq Er ENOTSUP
68 The file system on which the file identified by
69 .Va path_p
70 is located does not support ACLs, or ACLs are disabled.
71 .It Bq Er EPERM
72 The process does not have appropriate privilege to perform the operation to delete the default ACL.
73 .It Bq Er EROFS
74 This function requires modification of a file system which is currently read-only.
75 .El
76 .Sh STANDARDS
77 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
78 .Sh SEE ALSO
79 .Xr acl_get_file 3 ,
80 .Xr acl_set_file 3 ,
81 .Xr acl 5
82 .Sh AUTHOR
83 Derived from the FreeBSD manual pages written by
84 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
85 and adapted for Linux by
86 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .