resetting manifest requested domain to floor
[platform/upstream/acl.git] / man / man3 / acl_set_permset.3
1 .\" Access Control Lists manual pages
2 .\"
3 .\" (C) 2002 Andreas Gruenbacher, <a.gruenbacher@bestbits.at>
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual.  If not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\"
24 .Dd March 23, 2002
25 .Dt ACL_SET_PERMSET 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_set_permset
29 .Nd set the permission set in an ACL entry
30 .Sh LIBRARY
31 Linux Access Control Lists library (libacl, \-lacl).
32 .Sh SYNOPSIS
33 .In sys/types.h
34 .In sys/acl.h
35 .Ft int
36 .Fn acl_set_permset "acl_entry_t entry_d" "acl_permset_t permset_d"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_set_permset
40 function sets the permission set of the ACL entry indicated by the argument
41 .Va entry_d 
42 to the permissions contained in the argument
43 .Va permset_d .
44 .Pp
45 Any ACL entry descriptors that refer to the entry containing the permission
46 set referred to by
47 .Va permset_d
48 shall continue to refer to those entries. Any ACL entry descriptors that
49 refer to the entry referred to by
50 .Va entry_d
51 shall continue to refer to that entry.
52 .Sh RETURN VALUE
53 .Rv -std acl_set_permset
54 .Sh ERRORS
55 If any of the following conditions occur, the
56 .Fn acl_set_permset
57 function returns
58 .Li -1
59 and sets
60 .Va errno
61 to the corresponding value:
62 .Bl -tag -width Er
63 .It Bq Er EINVAL
64 The argument
65 .Va entry_d
66 is not a valid descriptor for an ACL entry.
67 .Pp
68 The argument
69 .Va permset_d
70 is not a valid descriptor for a permission set within an ACL entry.
71 .Pp
72 .\" <AG>
73 .\" The following condition seems strange.
74 .\" </AG>
75 The argument
76 .Va permset_d
77 contains values which are not valid
78 .Va acl_permset_t
79 values.
80 .El
81 .Sh STANDARDS
82 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
83 .Sh SEE ALSO
84 .Xr acl_add_perm 3 ,
85 .Xr acl_clear_perms 3 ,
86 .Xr acl_delete_perm 3 ,
87 .Xr acl_get_perm 3 ,
88 .Xr acl_get_permset 3 ,
89 .Xr acl_get_qualifier 3 ,
90 .Xr acl_get_tag_type 3 ,
91 .Xr acl_set_qualifier 3 ,
92 .Xr acl_set_tag_type 3 ,
93 .Xr acl 5
94 .Sh AUTHOR
95 Derived from the FreeBSD manual pages written by
96 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
97 and adapted for Linux by
98 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .