1ACL_DELETE_ENTRY(3) BSD Library Functions Manual ACL_DELETE_ENTRY(3)
2
4 acl_delete_entry — delete an ACL entry
5
7 Linux Access Control Lists library (libacl, -lacl).
8
10 #include <sys/types.h>
11 #include <sys/acl.h>
12
13 int
14 acl_delete_entry(acl_t acl, acl_entry_t entry_d);
15
17 The acl_delete_entry() function removes the ACL entry indicated by the
18 entry_d descriptor from the ACL pointed to by acl. Any existing ACL en‐
19 try descriptors that refer to entries in acl other than that referred to
20 by entry_d continue to refer to the same entries. The argument entry_d
21 and any other ACL entry descriptors that refer to the same ACL entry are
22 undefined after this function completes. Any existing ACL pointers that
23 refer to the ACL referred to by acl continue to refer to the ACL.
24
26 The acl_delete_entry() function returns the value 0 if successful; other‐
27 wise the value -1 is returned and the global variable errno is set to in‐
28 dicate the error.
29
31 If any of the following conditions occur, the acl_delete_entry() function
32 returns -1 and sets errno to the corresponding value:
33
34 [EINVAL] The argument acl_p is not a valid pointer to an ACL.
35
36 The argument entry_d is not a valid pointer to an ACL
37 entry.
38
40 IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
41
43 acl_copy_entry(3), acl_create_entry(3), acl_get_entry(3), acl(5)
44
46 Derived from the FreeBSD manual pages written by Robert N M Watson
47 <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
48 <andreas.gruenbacher@gmail.com>.
49
50Linux ACL March 23, 2002 Linux ACL