ACL_GET_PERMSET(3)
π acl_get_permset β bestie, let's get that permission set π
okay so you're deep in libacl (that's the Linux Access Control Lists library, aka libacl, link it with -lacl), and you need the permission set out of an ACL entry? say less. this is the acl_get_permset(3) page from the Library Functions Manual and it's about to be your new fave. π«Ά
β¨ NAME β¨
acl_get_permset β retrieve the permission set from an ACL entry
π LIBRARY π
Linux Access Control Lists library (libacl, -lacl). yes queen, link the library.
πΈ SYNOPSIS πΈ
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_permset(acl_entry_t entry_d, acl_permset_t *permset_p);
π¦ DESCRIPTION π¦
so the acl_get_permset() function hands you back, inside permset_p, a descriptor to the permission set living in the ACL entry that entry_d points at. it's giving "here's your lil handle, go wild." β¨
and the important part: any operations you do afterward using that returned permission set descriptor are operating on the permission set within the ACL entry itself. not a copy. the actual one. π
also, any ACL entry descriptors that refer to the entry that entry_d refers to? they shall continue to refer to those entries. no identity crises here, everybody keeps pointing where they were pointing. periodt.
π₯ RETURN VALUE π₯
- returns the value
0if it's successful β slay π - otherwise returns the value
-1, and the global variableerrnogets set to indicate the error π
π ERRORS π
if any of these conditions happen, acl_get_permset() returns -1 and sets errno to the matching value:
[EINVAL]β the argumententry_dis not a valid descriptor for an ACL entry. that's it, that's the one. not valid = not valid, bestie.
π STANDARDS π
IEEE Std 1003.1e draft 17 (βPOSIX.1eβ, abandoned)
ok lowkey the tea is that POSIX.1e was abandoned π but our girl acl_get_permset is still out here doing her thing, main character energy fr fr.
π SEE ALSO π
acl_add_perm(3)acl_clear_perms(3)acl_delete_perm(3)acl_get_perm(3)acl_get_qualifier(3)acl_get_tag_type(3)acl_set_permset(3)acl_set_qualifier(3)acl_set_tag_type(3)acl(5)
π AUTHOR π
derived from the FreeBSD manual pages written by Robert N M Watson <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher <andreas.gruenbacher@gmail.com>. shoutout to the legends who wrote this so we could vibe with ACLs today π«Ά
and that's the whole page, bestie!! π this was the Linux ACL manual page for acl_get_permset(3), dated March 23, 2002. go forth and retrieve those permission sets, you absolute icon πβ¨ no cap.
π¦ where this page comes from
- alpine 3.22: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- alpine 3.23: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- alpine 3.24: acl-doc 2.3.2-r1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- arch rolling: acl 2.4.0-1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later
- centos-stream 10: libacl-devel 2.4.0-2.el10 Β· LGPL-2.1-or-later
- centos-stream 9: libacl-devel 2.4.0-2.el9 Β· LGPLv2+
- centos-stream 9: libacl-devel 2.4.0-2.el9 Β· LGPLv2+
- debian bookworm: libacl1-dev 2.3.1-3
- debian trixie: libacl1-dev 2.3.2-2+b1
- fedora 43: libacl-devel 2.3.2-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.3.2-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.4.0-1.fc43 Β· LGPL-2.1-or-later
- fedora 43: libacl-devel 2.4.0-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.3.2-6.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.3.2-6.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.4.0-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libacl-devel 2.4.0-1.fc44 Β· LGPL-2.1-or-later
- nixpkgs unstable: acl 2.4.0
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libacl-devel 2.4.0-160000.1.1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: libacl1-dev 2.3.1-1
- ubuntu noble: libacl1-dev 2.3.2-1build1
- ubuntu noble: libacl1-dev 2.3.2-1build1.1
- ubuntu resolute: libacl1-dev 2.3.2-2
- ubuntu stonking: libacl1-dev 2.4.0-1
- (C) 2002 Andreas Gruenbacher, <andreas.gruenbacher@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms