1ACL_DELETE_PERM(3)       BSD Library Functions Manual       ACL_DELETE_PERM(3)
2

NAME

4     acl_delete_perm — delete a permission from an ACL permission set
5

LIBRARY

7     Linux Access Control Lists library (libacl, -lacl).
8

SYNOPSIS

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

DESCRIPTION

17     The acl_delete_perm() function deletes the permission contained in the
18     argument perm from the permission set referred to by the argument
19     permset_d.  An attempt to delete a permission that is not contained in
20     the permission set is not considered an error.
21
22     Any existing descriptors that refer to permset_d continue to refer to
23     that permission set.
24

RETURN VALUE

26     The acl_delete_perm() function returns the value 0 if successful; other‐
27     wise the value -1 is returned and the global variable errno is set to
28     indicate the error.
29

ERRORS

31     If any of the following conditions occur, the acl_delete_perm() function
32     returns -1 and sets errno to the corresponding value:
33
34     [EINVAL]           The argument permset_d is not a valid descriptor for a
35                        permission set within an ACL entry.
36
37                        The argument perm does not contain a valid acl_perm_t
38                        value.
39

STANDARDS

41     IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
42

SEE ALSO

44     acl_add_perm(3), acl_clear_perms(3), acl_get_perm(3), acl_get_permset(3),
45     acl_set_permset(3), acl(5)
46

AUTHOR

48     Derived from the FreeBSD manual pages written by Robert N M Watson
49     <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
50     <a.gruenbacher@bestbits.at>.
51
52Linux ACL                       March 23, 2002                       Linux ACL
Impressum