1 .\" Access Control Lists manual pages
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
5 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
6 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
7 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
8 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
9 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
10 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
13 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
14 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 .Nd get an ACL by file descriptor
24 Linux Access Control Lists library (libacl, \-lacl).
29 .Fn acl_get_fd "int fd"
33 function retrieves the access ACL associated with the file referred to by
35 The ACL is placed into working storage and
37 returns a pointer to that storage.
39 In order to read an ACL from an object, a process must have read access to
40 the object's attributes.
42 This function may cause memory to be allocated. The caller should free any
43 releasable memory, when the new ACL is no longer required, by calling
51 On success, this function shall return a pointer to the
52 working storage. On error, a value of
54 shall be returned, and
58 If any of the following conditions occur, the
60 function returns a value of
64 to the corresponding value:
69 argument is not a valid file descriptor.
71 The ACL working storage requires more memory than is allowed by the hardware or system-imposed memory management constraints.
73 The file system on which the file identified by
75 is located does not support ACLs, or ACLs are disabled.
78 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
86 Derived from the FreeBSD manual pages written by
87 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
88 and adapted for Linux by
89 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .