ACL_COPY_INT(3)
π acl_copy_int β bestie's guide to the ACL glow-up π
okay so real talk, this one lives in the Linux Access Control Lists library, aka libacl, and you link it with -lacl. it's from the Library Functions Manual, section 3. iykyk π
β¨ NAME β¨
acl_copy_int β copy an ACL from external to internal representation
like. it takes the outside version and gives it a whole internal makeover. main character transformation energy π¦
π LIBRARY π
Linux Access Control Lists library (libacl, -lacl).
πΈ SYNOPSIS πΈ
#include <sys/types.h>
#include <sys/acl.h>
acl_t
acl_copy_int(const void *buf_p);
π DESCRIPTION π
so acl_copy_int() takes an exportable, contiguous, persistent form of an ACL β that's the one pointed to by buf_p β and copies it into the internal representation. external form goes in, working-storage ACL comes out. slay β¨
heads up bestie: this function may cause memory to be allocated. so when you're done with the new ACL, you have to free any releasable memory yourself. the way to do that is callingacl_free(3)with the(void*)acl_tthatacl_copy_int()returned, passed as the argument. don't ghost it, actually free it π
π₯ RETURN VALUE π₯
if it eats, it returns a pointer that references the ACL in working storage. π
if it doesn't, you get (acl_t)NULL back, and errno gets set appropriately. no cap.
π ERRORS π
if any of these conditions happen, acl_copy_int() returns (acl_t)NULL and sets errno to the matching value:
[EINVAL]β the buffer pointed to by the argumentbuf_pdoes not contain a valid external form ACL. like the vibe check failed fr fr π[ENOMEM]β the ACL working storage needs more memory than the hardware or the system-imposed memory management constraints allow. she's asking for more than the universe can give π
π STANDARDS π
IEEE Std 1003.1e draft 17 (βPOSIX.1eβ, abandoned).
yes bestie, abandoned. we still love her though. periodt.
π SEE ALSO π
acl_copy_ext(3), acl_get_entry(3), acl_free(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>.
and that's the whole page, bestie!! this one shipped as part of the Linux ACL manual, dated March 23, 2002 β ACL_COPY_INT(3), iconic, no notes. now go free your ACLs πβ¨π
π¦ 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