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

NAME

4     acl_from_mode — create an ACL from file permission bits
5

LIBRARY

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

SYNOPSIS

10     #include <sys/types.h>
11     #include <acl/libacl.h>
12
13     acl_t
14     acl_from_mode(mode_t mode);
15

DESCRIPTION

17     The acl_from_mode() function creates a minimal ACL that contains the
18     three entries with tag types ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER,
19     with permissions corresponding to the owner, group, and other permission
20     bits of its argument mode.
21

RETURN VALUE

23     On success, this function returns a pointer to the working storage. On
24     error, a value of (acl_t)NULL is returned, and errno is set appropri‐
25     ately.
26

ERRORS

28     If any of the following conditions occur, the acl_from_mode() function
29     returns a value of (acl_t)NULL and sets errno to the corresponding value:
30
31     [ENOMEM]           The ACL working storage requires more memory than is
32                        allowed by the hardware or system-imposed memory man‐
33                        agement constraints.
34

STANDARDS

36     This is a non-portable, Linux specific extension to the ACL manipulation
37     functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).
38

SEE ALSO

40     acl_equiv_mode(3), acl_get_file(3), acl(5)
41

AUTHOR

43     Written by Andreas Gruenbacher <andreas.gruenbacher@gmail.com>.
44
45Linux ACL                       March 23, 2002                       Linux ACL
Impressum