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/>.
29 .Nd convert an ACL to text
31 Linux Access Control Lists library (libacl, \-lacl).
38 .Fa "const char *prefix"
45 function translates the ACL pointed to by the argument
49 terminated character string. This character string
50 is composed of the ACL entries contained in
52 in the entry text format described on
54 Entries are separated from each other by the
56 character. If the argument
59 .Li (const char *)NULL ,
60 each entry is prefixed by this character string.
66 ACL entries are converted using the entry tag type keywords
67 .Li user , group , mask ,
70 User IDs and group IDs of ACL entries that contain such
71 qualifiers are converted to their corresponding names; if an identifier
72 has no corresponding name, a decimal number string is produced. The
73 ACL text representation contains no additional comments.
74 A bitwise combinations of the following
76 can be used to modify the result:
79 Instead of the full tag type keywords, single letter abbreviations are used.
92 and the abbreviation for
97 User IDs and group IDs are included as decimal numbers instead of names.
98 .It TEXT_SOME_EFFECTIVE
99 A comment containing the effective permissions of the ACL entry is
100 included after ACL entries that contain permissions which are ineffective
101 because they are masked by an ACL_MASK entry. The ACL entry and the comment
102 are separated by a tab character.
103 .It TEXT_ALL_EFFECTIVE
104 A comment containing the effective permissions of the ACL entry is
105 included after all ACL entries that are affected by an ACL_MASK entry.
106 The comment is included even if the permissions contained in the ACL
107 entry equal the effective permissions. The ACL entry and the comment are
108 separated by a tab character.
109 .It TEXT_SMART_INDENT
110 This option is used in combination with the TEXT_SOME_EFFECTIVE or
111 TEXT_ALL_EFFECTIVE option. The number of tab characters inserted between
112 the ACL entry and the comment is increased so that the comment is
113 aligned to the fourth tab stop position.
114 A tab width of 8 characters is assumed.
117 The ACL referred to by
121 This function allocates any memory necessary to contain the string and
122 returns a pointer to the string. The caller should free any releasable
123 memory, when the new string is no longer required, by calling
131 On success, this function returns a pointer to the text
132 representation of the ACL. On error, a value of
136 is set appropriately.
138 If any of the following conditions occur, the
140 function returns a value of
144 to the corresponding value:
149 is not a valid pointer to an ACL.
151 The ACL referenced by
153 contains one or more improperly formed ACL entries, or for some other
154 reason cannot be translated into the text form of an ACL.
156 The character string to be returned requires more memory than is allowed
157 by the hardware or system-imposed memory management constraints.
160 This is a non-portable, Linux specific extension to the ACL manipulation
161 functions defined in IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned).
163 .Xr acl_from_text 3 ,
169 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .