1ACL_DELETE_PERM(3) BSD Library Functions Manual ACL_DELETE_PERM(3)
2
4 acl_delete_perm — delete a permission from an ACL permission set
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_perm(acl_permset_t permset_d, acl_perm_t perm);
15
17 The acl_delete_perm() function deletes the permission contained in the
18 argument perm (one of ACL_READ, ACL_WRITE, ACL_EXECUTE) from the permis‐
19 sion set referred to by the argument permset_d. An attempt to delete a
20 permission that is not contained in the permission set is not considered
21 an error.
22
23 Any existing descriptors that refer to permset_d continue to refer to
24 that permission set.
25
27 The acl_delete_perm() function returns the value 0 if successful; other‐
28 wise the value -1 is returned and the global variable errno is set to in‐
29 dicate the error.
30
32 If any of the following conditions occur, the acl_delete_perm() function
33 returns -1 and sets errno to the corresponding value:
34
35 [EINVAL] The argument permset_d is not a valid descriptor for a
36 permission set within an ACL entry.
37
38 The argument perm does not contain a valid acl_perm_t
39 value.
40
42 IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
43
45 acl_add_perm(3), acl_clear_perms(3), acl_get_perm(3), acl_get_permset(3),
46 acl_set_permset(3), acl(5)
47
49 Derived from the FreeBSD manual pages written by Robert N M Watson
50 <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
51 <andreas.gruenbacher@gmail.com>.
52
53Linux ACL March 23, 2002 Linux ACL