1ACL_EXTENDED_FD(3) BSD Library Functions Manual ACL_EXTENDED_FD(3)
2
4 acl_extended_fd — test for information in the ACL by file descriptor
5
7 Linux Access Control Lists library (libacl, -lacl).
8
10 #include <sys/types.h>
11 #include <acl/libacl.h>
12
13 int
14 acl_extended_fd(int fd);
15
17 The acl_extended_fd() function returns 1 if the file identified by the
18 argument fd is associated with an extended access ACL. The function re‐
19 turns 0 if the file does not have an extended access ACL.
20
21 An extended ACL is an ACL that contains entries other than the three re‐
22 quired entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ and ACL_OTHER.
23 If the result of the acl_extended_fd() function for a file object is 0,
24 then the ACL defines no discretionary access rights other than those al‐
25 ready defined by the traditional file permission bits.
26
27 Access to the file object may be further restricted by other mechanisms,
28 such as Mandatory Access Control schemes. The access(2) system call can
29 be used to check whether a given type of access to a file object would be
30 granted.
31
33 If successful, the acl_extended_fd() function returns 1 if the file ob‐
34 ject identified by fd has an extended access ACL, and 0 if the file ob‐
35 ject identified by fd does not have an extended access ACL. Otherwise,
36 the value -1 is returned and the global variable errno is set to indicate
37 the error.
38
40 If any of the following conditions occur, the acl_extended_fd() function
41 returns -1 and sets errno to the corresponding value:
42
43 [EBADF] The fd argument is not a valid file descriptor.
44
45 [ENOTSUP] The file system on which the file identified by fd is
46 located does not support ACLs, or ACLs are disabled.
47
49 This is a non-portable, Linux specific extension to the ACL manipulation
50 functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).
51
53 access(2), acl_get_fd(3), acl(5)
54
56 Written by Andreas Gruenbacher <andreas.gruenbacher@gmail.com>.
57
58Linux ACL March 23, 2002 Linux ACL