sort_pacl_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sort_pacl_range(9) πŸ’…

okay so this is from the Kernel API Manual, section 9, and it's lowkey one of those tiny little functions that keeps the whole vibe from falling apart. sit down bestie, it's a short one 🫢


✨ NAME ✨

sort_pacl_range β€” sorts a range of POSIX ACL entries by tag and id πŸŽ€


🌸 SYNOPSIS 🌸

void sort_pacl_range (struct posix_acl *pacl , int start , int end );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pacl β€” the POSIX ACL that's holding the entries you wanna sort πŸ’–
  • start β€” starting index of the range to sort
  • end β€” ending index of the range to sort (and yes, it's inclusive, so don't come for her βœ‹)

πŸ‘‘ DESCRIPTION πŸ‘‘

She sorts ACL entries in place β€” no copy, no drama, just reordering the actual entries right where they live πŸ’…

Here's the order tea: USER entries get ordered by UID, and GROUP entries get ordered by GID. That's it, that's the whole job ✨

And this isn't just a cute optional little glow-up β€” it's required before calling posix_acl_valid. So like, do it first, or nothing downstream is gonna slay 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/nfsd/nfs4acl.c β€” go read it, iykyk πŸ“–


ngl this one's short but she's iconic. sort first, validate second, periodt πŸ’€βœ¨

mwah πŸ’‹ that's the whole page, brought to you by the ./fs/nfsd source, dated October 2026, living in the Kernel API Manual at section 9 β€” take care of her πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from