sort_pacl_range(9)
π 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 sortendβ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms