ACL_COPY_ENTRY(3)
β¨ ACL_COPY_ENTRY(3) β¨
okay bestie, gather round, because today we're talking about acl_copy_entry from the Linux Access Control Lists library β that's libacl, link it with -lacl π. This is the library functions manual, and it's giving "small but mighty," fr fr.
πΈ NAME πΈ
acl_copy_entry β copy an ACL entry π
π LIBRARY π
Linux Access Control Lists library (libacl, -lacl) π¦
π§ SYNOPSIS π§
#include <sys/types.h>
#include <sys/acl.h>
int
acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d);
π DESCRIPTION π
okay so here's the vibe: acl_copy_entry() takes the contents of the ACL entry that src_d is pointing at, and copies all of it into the existing ACL entry that dest_d is pointing at. like, straight up duplicating the whole thing, no cap.
and here's the iconic part β src_d and dest_d can refer to entries in different ACLs. they do not have to be besties from the same ACL. cross-ACL copy? slay. π«
π«Ά RETURN VALUE π«Ά
acl_copy_entry()returns the value0if it worked. periodt, we love a success.- otherwise it returns
-1, and the global variableerrnogets set to tell you what went wrong π
π ERRORS π
if any of these conditions happen, acl_copy_entry() returns -1 and sets errno to the matching value:
[EINVAL]β The argumentsrc_dordest_dis not a valid descriptor for an ACL entry.
The arguments src_d and dest_d reference the same ACL entry.
not me trying to copy an entry onto itself π yeah that's an [EINVAL], bestie, don't do it.
π STANDARDS π
IEEE Std 1003.1e draft 17 (βPOSIX.1eβ, abandoned) π₯²
π₯ SEE ALSO π₯
π 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>. absolute legends, we stan π«Ά
and that's the whole page, babes π this came out of the Linux ACL docs, dated March 23, 2002 β yeah, it's vintage, but it still ate. mwah, go forth and copy those entries 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