1 .\" Access Control Lists manual pages
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
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.
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.
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.
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/>.
25 .Dt ACL_EXTENDED_FILE 3
28 .Nm acl_extended_file, acl_extended_file_nofollow
29 .Nd test for information in ACLs by file name
31 Linux Access Control Lists library (libacl, \-lacl).
36 .Fn acl_extended_file "const char *path_p"
38 .Fn acl_extended_file_nofollow "const char *path_p"
44 if the file or directory referred to by the argument
46 is associated with an extended access ACL, or if the directory referred to by
48 is associated with a default ACL. The function returns
50 if the file has neither an extended access ACL nor a default ACL.
52 An extended ACL is an ACL that contains entries other than the three
53 required entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ and ACL_OTHER.
56 function for a file object is
58 then ACLs define no discretionary access rights other than those
59 already defined by the traditional file permission bits.
61 Access to the file object may be further restricted by other
62 mechanisms, such as Mandatory Access Control schemes. The
64 system call can be used to check whether a given type of access to a file
65 object would be granted.
67 .Fn acl_extended_file_nofollow
69 .Fn acl_extended_file ,
70 except in the case of a symbolic link, where the link itself is interrogated,
71 not the file that it refers to. Since symbolic links have no ACL themselves,
72 the operation is supposed to fail on them.
78 if the file object referred to by
80 has an extended access ACL or a default ACL, and
82 if the file object referred to by
84 has neither an extended access ACL nor a default ACL. Otherwise, the value
86 is returned and the global variable
88 is set to indicate the error.
90 If any of the following conditions occur, the
96 to the corresponding value:
99 Search permission is denied for a component of the path prefix.
100 .It Bq Er ENAMETOOLONG
101 The length of the argument
105 The named object does not exist or the argument
107 points to an empty string.
109 A component of the path prefix is not a directory.
111 The file system on which the file identified by
113 is located does not support ACLs, or ACLs are disabled.
116 This is a non-portable, Linux specific extension to the ACL manipulation
117 functions defined in IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned).
124 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .