resetting manifest requested domain to floor
[platform/upstream/acl.git] / man / man3 / acl_delete_perm.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_DELETE_PERM 3
26 .Os "Linux ACL"
27 .Sh NAME
28 .Nm acl_delete_perm
29 .Nd delete a permission from an ACL permission set
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_delete_perm "acl_permset_t permset_d" "acl_perm_t perm"
37 .Sh DESCRIPTION
38 The
39 .Fn acl_delete_perm
40 function deletes the permission contained in the argument
41 .Va perm
42 from the permission set referred to by the argument
43 .Va permset_d .
44 An attempt to delete a permission that is not contained in the permission
45 set is not considered an error.
46 .Pp
47 Any existing descriptors that refer to
48 .Va permset_d
49 continue to refer to that permission set.
50 .Sh RETURN VALUE
51 .Rv -std acl_delete_perm
52 .Sh ERRORS
53 If any of the following conditions occur, the
54 .Fn acl_delete_perm
55 function returns
56 .Li -1
57 and sets
58 .Va errno
59 to the corresponding value:
60 .Bl -tag -width Er
61 .It Bq Er EINVAL
62 The argument
63 .Va permset_d
64 is not a valid descriptor for a permission set within an ACL entry.
65 .Pp
66 The argument
67 .Va perm
68 does not contain a valid
69 .Va acl_perm_t
70 value.
71 .El
72 .Sh STANDARDS
73 IEEE Std 1003.1e draft 17 (\(lqPOSIX.1e\(rq, abandoned)
74 .Sh SEE ALSO
75 .Xr acl_add_perm 3 ,
76 .Xr acl_clear_perms 3 ,
77 .Xr acl_get_perm 3 ,
78 .Xr acl_get_permset 3 ,
79 .Xr acl_set_permset 3 ,
80 .Xr acl 5
81 .Sh AUTHOR
82 Derived from the FreeBSD manual pages written by
83 .An "Robert N M Watson" Aq rwatson@FreeBSD.org ,
84 and adapted for Linux by
85 .An "Andreas Gruenbacher" Aq a.gruenbacher@bestbits.at .