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

NAME

4     acl_clear_perms — clear all permissions 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_clear_perms(acl_permset_t permset_d);
15

DESCRIPTION

17     The acl_clear_perms() function clears all permissions from the permission
18     set referred to by the argument permset_d.
19
20     Any existing descriptors that refer to permset_d shall continue to refer
21     to that permission set.
22

RETURN VALUE

24     The acl_clear_perms() function returns the value 0 if successful; other‐
25     wise the value -1 is returned and the global variable errno is set to in‐
26     dicate the error.
27

ERRORS

29     If any of the following conditions occur, the acl_clear_perms() function
30     returns -1 and sets errno to the corresponding value:
31
32     [EINVAL]           The argument permset_d is not a valid descriptor for a
33                        permission set within an ACL entry.
34

STANDARDS

36     IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
37

SEE ALSO

39     acl_add_perm(3), acl_delete_perm(3), acl_get_perm(3), acl_get_permset(3),
40     acl_set_permset(3), acl(5)
41

AUTHOR

43     Derived from the FreeBSD manual pages written by Robert N M Watson
44     <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
45     <andreas.gruenbacher@gmail.com>.
46
47Linux ACL                       March 23, 2002                       Linux ACL
Impressum