ACL_CLEAR_PERMS(3)
β¨ ACL_CLEAR_PERMS β¨
okay bestie, so this one's from the Linux Access Control Lists library, aka libacl, and you link it with -lacl. it's page acl_clear_perms(3) from the Library Functions Manual and honestly? it's giving "small but mighty" π
πΈ NAME πΈ
acl_clear_perms β clears all the permissions from an ACL permission set. every single one. gone. bye. π§Ήβ¨
π LIBRARY π
Linux Access Control Lists library β that's libacl, and you link it with -lacl. no cap.
π SYNOPSIS π
#include <sys/types.h>
#include <sys/acl.h>
int
acl_clear_perms(acl_permset_t permset_d);
look at her. two includes, one function, zero drama. π
π DESCRIPTION π
so the way this works is, acl_clear_perms() clears all the permissions from the permission set that the argument permset_d is referring to. like, every permission in there? wiped. the permset is empty bestie, it's on a cleanse π§βοΈ
and here's the cute part β any existing descriptors that refer to permset_d shall continue to refer to that permission set. so nobody's pointer gets orphaned, everybody still knows where home is. π π«Ά
π₯ RETURN VALUE π₯
- returns the value
0if it worked. slay. β - otherwise it returns the value
-1, and the global variableerrnogets set to indicate the error. π
π ERRORS π
if any of these conditions happen, acl_clear_perms() returns -1 and sets errno to the matching value:
[EINVAL]β the argumentpermset_dis not a valid descriptor for a permission set within an ACL entry. like girl, that's not a permset, what is that π
π STANDARDS π
IEEE Std 1003.1e draft 17 (βPOSIX.1eβ, abandoned)
not me crying over POSIX.1e being abandoned... it's fine. it's totally fine. π the draft is real to us.
π SEE ALSO π
go read the whole friend group, they're all icons fr fr π
π¦ 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>.
thank you for your service, legends π«‘π
and that's the whole page bestie β Linux ACL, dated March 23, 2002, page ACL_CLEAR_PERMS(3). mwah, go clear some perms responsibly π
π
π¦ 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