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

NAME

4     acl_set_permset — set the permission set in an ACL entry
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_set_permset(acl_entry_t entry_d, acl_permset_t permset_d);
15

DESCRIPTION

17     The acl_set_permset() function sets the permission set of the ACL entry
18     indicated by the argument entry_d to the permissions contained in the
19     argument permset_d.
20
21     Any ACL entry descriptors that refer to the entry containing the permis‐
22     sion set referred to by permset_d shall continue to refer to those
23     entries. Any ACL entry descriptors that refer to the entry referred to by
24     entry_d shall continue to refer to that entry.
25

RETURN VALUE

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

ERRORS

32     If any of the following conditions occur, the acl_set_permset() function
33     returns -1 and sets errno to the corresponding value:
34
35     [EINVAL]           The argument entry_d is not a valid descriptor for an
36                        ACL entry.
37
38                        The argument permset_d is not a valid descriptor for a
39                        permission set within an ACL entry.
40
41                        The argument permset_d contains values which are not
42                        valid acl_permset_t values.
43

STANDARDS

45     IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned)
46

SEE ALSO

48     acl_add_perm(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_perm(3),
49     acl_get_permset(3), acl_get_qualifier(3), acl_get_tag_type(3),
50     acl_set_qualifier(3), acl_set_tag_type(3), acl(5)
51

AUTHOR

53     Derived from the FreeBSD manual pages written by Robert N M Watson
54     <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
55     <a.gruenbacher@bestbits.at>.
56
57Linux ACL                       March 23, 2002                       Linux ACL
Impressum