ACL_IS_TRIVIAL_NP(3)
π
ACL_IS_TRIVIAL_NP(3) π
okay so bestie, this page is from the Library Functions Manual, and itβs about one little function that does one little vibe check on an ACL. No cap.
πΈ NAME πΈ
acl_is_trivial_np β determine whether ACL is trivial. Thatβs literally the whole assignment. π
π LIBRARY π
It hangs out in the Standard C Library (libc, -lc). Slay.
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <sys/acl.h>
int
acl_is_trivial_np(const acl_t aclp, int *trivialp);
π¦ DESCRIPTION π¦
The acl_is_trivial_np() function determines whether the ACL pointed to by the argument acl is trivial. Okay so picture this: upon successful completion, the location referred to by the argument trivialp will be set to 1 if the ACL aclp points to is trivial, or 0 if itβs not. Boom. Binary. Iconic.
An ACL is trivial if it can be fully expressed as a file mode without losing any access rules. For POSIX.1e ACLs, ACL is trivial if it has the three required entries, one for owner, one for owning group, and one for other. For NFSv4 ACLs, ACL is trivial if it is identical to the ACL generated by acl_strip_np(3). Files that have non-trivial ACL have a plus sign appended after mode bits in the "ls -l" output. So if you see that +, bestie, that ACL is giving βnot like the other girls.β π₯
π RETURN VALUES π
The acl_is_trivial_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. So 0 = good vibes, -1 = check errno, fr fr.
π SEE ALSO π
π STANDARDS π
POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing list. To join this list, see the FreeBSD POSIX.1e implementation page for more information. Very βiykyk.β β¨
π HISTORY π
POSIX.1e support was introduced in FreeBSD 4.0. The acl_is_trivial_np() function was added in FreeBSD 8.0. A whole era. π
π«Ά AUTHORS π«Ά
Edward Tomasz Napierala <trasz@FreeBSD.org>
xoxo, your Debian bestie π β this was ACL_IS_TRIVIAL_NP(3), dated June 19, 2023, from Debian. mwah π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008, 2009 Edward Tomasz Napierala
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms