114721edaSChris D. Faulhaber.\"- 214721edaSChris D. Faulhaber.\" Copyright (c) 2001 Chris D. Faulhaber 314721edaSChris D. Faulhaber.\" All rights reserved. 414721edaSChris D. Faulhaber.\" 514721edaSChris D. Faulhaber.\" Redistribution and use in source and binary forms, with or without 614721edaSChris D. Faulhaber.\" modification, are permitted provided that the following conditions 714721edaSChris D. Faulhaber.\" are met: 814721edaSChris D. Faulhaber.\" 1. Redistributions of source code must retain the above copyright 914721edaSChris D. Faulhaber.\" notice, this list of conditions and the following disclaimer. 1014721edaSChris D. Faulhaber.\" 2. Redistributions in binary form must reproduce the above copyright 1114721edaSChris D. Faulhaber.\" notice, this list of conditions and the following disclaimer in the 1214721edaSChris D. Faulhaber.\" documentation and/or other materials provided with the distribution. 1314721edaSChris D. Faulhaber.\" 1414721edaSChris D. Faulhaber.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1514721edaSChris D. Faulhaber.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1614721edaSChris D. Faulhaber.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1768b23992SWarner Losh.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 1868b23992SWarner Losh.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1968b23992SWarner Losh.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2068b23992SWarner Losh.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2168b23992SWarner Losh.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2268b23992SWarner Losh.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2368b23992SWarner Losh.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2468b23992SWarner Losh.\" SUCH DAMAGE. 2514721edaSChris D. Faulhaber.\" 2614721edaSChris D. Faulhaber.Dd March 10, 2001 2714721edaSChris D. Faulhaber.Dt ACL_CALC_MASK 3 2814721edaSChris D. Faulhaber.Os 2914721edaSChris D. Faulhaber.Sh NAME 3014721edaSChris D. Faulhaber.Nm acl_calc_mask 31bc057d3dSRuslan Ermilov.Nd calculate and set ACL mask permissions 3214721edaSChris D. Faulhaber.Sh LIBRARY 3331acc836SRuslan Ermilov.Lb libc 3414721edaSChris D. Faulhaber.Sh SYNOPSIS 3532eef9aeSRuslan Ermilov.In sys/types.h 3632eef9aeSRuslan Ermilov.In sys/acl.h 3714721edaSChris D. Faulhaber.Ft int 3814721edaSChris D. Faulhaber.Fn acl_calc_mask "acl_t *acl_p" 3914721edaSChris D. Faulhaber.Sh DESCRIPTION 401fae73b1SRuslan ErmilovThe 4114721edaSChris D. Faulhaber.Fn acl_calc_mask 421fae73b1SRuslan Ermilovfunction 4314721edaSChris D. Faulhaberis a POSIX.1e call that calculates and set the permissions 44bc057d3dSRuslan Ermilovassociated with the 45bc057d3dSRuslan Ermilov.Dv ACL_MASK 46bc057d3dSRuslan ErmilovACL entry of the ACL referred to by 47bc057d3dSRuslan Ermilov.Fa acl_p . 4814721edaSChris D. Faulhaber.Pp 4914721edaSChris D. FaulhaberThe value of new permissions are the union of the permissions 50bc057d3dSRuslan Ermilovgranted by the 51bc057d3dSRuslan Ermilov.Dv ACL_GROUP , ACL_GROUP_OBJ , ACL_USER 52bc057d3dSRuslan Ermilovtag types which 5314721edaSChris D. Faulhabermatch processes in the file group class contained in the ACL 5414721edaSChris D. Faulhaberreferred to by 55bc057d3dSRuslan Ermilov.Fa acl_p . 5614721edaSChris D. Faulhaber.Pp 5714721edaSChris D. FaulhaberIf the ACL referred to by 58bc057d3dSRuslan Ermilov.Fa acl_p 59bc057d3dSRuslan Ermilovalready contains an 60bc057d3dSRuslan Ermilov.Dv ACL_MASK 61bc057d3dSRuslan Ermiloventry, its permissions shall be 62bc057d3dSRuslan Ermilovoverwritten; if it does not contain an 63bc057d3dSRuslan Ermilov.Dv ACL_MASK 64bc057d3dSRuslan Ermiloventry, one shall 6514721edaSChris D. Faulhaberbe added. 6614721edaSChris D. Faulhaber.Sh RETURN VALUES 67bc057d3dSRuslan Ermilov.Rv -std acl_calc_mask 6814721edaSChris D. Faulhaber.Sh ERRORS 69bc057d3dSRuslan ErmilovThe 7014721edaSChris D. Faulhaber.Fn acl_calc_mask 71bc057d3dSRuslan Ermilovfunction fails if: 7214721edaSChris D. Faulhaber.Bl -tag -width Er 7314721edaSChris D. Faulhaber.It Bq Er EINVAL 7414721edaSChris D. FaulhaberArgument 75bc057d3dSRuslan Ermilov.Fa acl_p 7614721edaSChris D. Faulhaberdoes not point to a pointer to a valid ACL. 7714721edaSChris D. Faulhaber.El 7814721edaSChris D. Faulhaber.Sh SEE ALSO 7914721edaSChris D. Faulhaber.Xr acl 3 , 8014721edaSChris D. Faulhaber.Xr acl_get_entry 3 , 8114721edaSChris D. Faulhaber.Xr acl_valid 3 , 8214721edaSChris D. Faulhaber.Xr posix1e 3 8314721edaSChris D. Faulhaber.Sh STANDARDS 8414721edaSChris D. FaulhaberPOSIX.1e is described in IEEE POSIX.1e draft 17. 8514721edaSChris D. Faulhaber.Sh HISTORY 8614721edaSChris D. FaulhaberPOSIX.1e support was introduced in 8714721edaSChris D. Faulhaber.Fx 4.0 . 8814721edaSChris D. FaulhaberThe 8914721edaSChris D. Faulhaber.Fn acl_calc_mask 9014721edaSChris D. Faulhaberfunction was added in 9114721edaSChris D. Faulhaber.Fx 5.0 . 9214721edaSChris D. Faulhaber.Sh AUTHORS 9314721edaSChris D. FaulhaberThe 9414721edaSChris D. Faulhaber.Fn acl_calc_mask 9514721edaSChris D. Faulhaberfunction was written by 96*8fbf3d50SBaptiste Daroussin.An Chris D. Faulhaber Aq Mt jedgar@fxp.org . 97