14bf60dfaSChris D. Faulhaber.\"- 24bf60dfaSChris D. Faulhaber.\" Copyright (c) 2001 Chris D. Faulhaber 34bf60dfaSChris D. Faulhaber.\" All rights reserved. 44bf60dfaSChris D. Faulhaber.\" 54bf60dfaSChris D. Faulhaber.\" Redistribution and use in source and binary forms, with or without 64bf60dfaSChris D. Faulhaber.\" modification, are permitted provided that the following conditions 74bf60dfaSChris D. Faulhaber.\" are met: 84bf60dfaSChris D. Faulhaber.\" 1. Redistributions of source code must retain the above copyright 94bf60dfaSChris D. Faulhaber.\" notice, this list of conditions and the following disclaimer. 104bf60dfaSChris D. Faulhaber.\" 2. Redistributions in binary form must reproduce the above copyright 114bf60dfaSChris D. Faulhaber.\" notice, this list of conditions and the following disclaimer in the 124bf60dfaSChris D. Faulhaber.\" documentation and/or other materials provided with the distribution. 134bf60dfaSChris D. Faulhaber.\" 144bf60dfaSChris D. Faulhaber.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 154bf60dfaSChris D. Faulhaber.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 164bf60dfaSChris 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. 254bf60dfaSChris D. Faulhaber.\" 26*20c61a7cSKyle Evans.Dd May 8, 2023 274bf60dfaSChris D. Faulhaber.Dt ACL_GET_PERMSET 3 284bf60dfaSChris D. Faulhaber.Os 294bf60dfaSChris D. Faulhaber.Sh NAME 304bf60dfaSChris D. Faulhaber.Nm acl_get_permset 318480a1ebSRuslan Ermilov.Nd retrieve permission set from an ACL entry 324bf60dfaSChris D. Faulhaber.Sh LIBRARY 3331acc836SRuslan Ermilov.Lb libc 344bf60dfaSChris D. Faulhaber.Sh SYNOPSIS 3532eef9aeSRuslan Ermilov.In sys/types.h 3632eef9aeSRuslan Ermilov.In sys/acl.h 374bf60dfaSChris D. Faulhaber.Ft int 384bf60dfaSChris D. Faulhaber.Fn acl_get_permset "acl_entry_t entry_d" "acl_permset_t *permset_p" 394bf60dfaSChris D. Faulhaber.Sh DESCRIPTION 401fae73b1SRuslan ErmilovThe 414bf60dfaSChris D. Faulhaber.Fn acl_get_permset 421fae73b1SRuslan Ermilovfunction 434bf60dfaSChris D. Faulhaberis a POSIX.1e call that returns via 448480a1ebSRuslan Ermilov.Fa permset_p 454bf60dfaSChris D. Faulhabera descriptor to the permission set in the ACL entry 468480a1ebSRuslan Ermilov.Fa entry_d . 474bf60dfaSChris D. FaulhaberSubsequent operations using the returned permission set operate 484bf60dfaSChris D. Faulhaberon the permission set within the ACL entry. 494bf60dfaSChris D. Faulhaber.Sh RETURN VALUES 508480a1ebSRuslan Ermilov.Rv -std acl_get_permset 514bf60dfaSChris D. Faulhaber.Sh ERRORS 528480a1ebSRuslan ErmilovThe 534bf60dfaSChris D. Faulhaber.Fn acl_get_permset 548480a1ebSRuslan Ermilovfunction fails if: 554bf60dfaSChris D. Faulhaber.Bl -tag -width Er 564bf60dfaSChris D. Faulhaber.It Bq Er EINVAL 574bf60dfaSChris D. FaulhaberArgument 588480a1ebSRuslan Ermilov.Fa entry_d 594bf60dfaSChris D. Faulhaberis not a valid descriptor for an ACL entry. 604bf60dfaSChris D. Faulhaber.El 614bf60dfaSChris D. Faulhaber.Sh SEE ALSO 624bf60dfaSChris D. Faulhaber.Xr acl 3 , 634bf60dfaSChris D. Faulhaber.Xr acl_add_perm 3 , 644bf60dfaSChris D. Faulhaber.Xr acl_clear_perms 3 , 654bf60dfaSChris D. Faulhaber.Xr acl_delete_perm 3 , 66*20c61a7cSKyle Evans.Xr acl_get_perm_np 3 , 674bf60dfaSChris D. Faulhaber.Xr acl_set_permset 3 , 684bf60dfaSChris D. Faulhaber.Xr posix1e 3 694bf60dfaSChris D. Faulhaber.Sh STANDARDS 704bf60dfaSChris D. FaulhaberPOSIX.1e is described in IEEE POSIX.1e draft 17. 714bf60dfaSChris D. Faulhaber.Sh HISTORY 724bf60dfaSChris D. FaulhaberPOSIX.1e support was introduced in 734bf60dfaSChris D. Faulhaber.Fx 4.0 . 744bf60dfaSChris D. FaulhaberThe 754bf60dfaSChris D. Faulhaber.Fn acl_get_permset 764bf60dfaSChris D. Faulhaberfunction was added in 774bf60dfaSChris D. Faulhaber.Fx 5.0 . 784bf60dfaSChris D. Faulhaber.Sh AUTHORS 794bf60dfaSChris D. FaulhaberThe 804bf60dfaSChris D. Faulhaber.Fn acl_get_permset 814bf60dfaSChris D. Faulhaberfunction was written by 828fbf3d50SBaptiste Daroussin.An Chris D. Faulhaber Aq Mt jedgar@fxp.org . 83