security_inode_set_acl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ security_inode_set_acl(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual section of the group chat πŸ’– this one's short and sweet, so grab your lil strawberry drink πŸ“ and let's get into it.


✨ NAME ✨

security_inode_set_acl β€” the little guard that checks whether you're actually allowed to set posix acls πŸ‘€ no cap.


🌸 SYNOPSIS 🌸

int security_inode_set_acl (struct mnt_idmap *idmap , struct dentry
*dentry , const char *acl_name , struct posix_acl *kacl );

πŸ¦‹ ARGUMENTS πŸ¦‹

four args, all iconic, all necessary πŸ’…

  • idmap β€” the idmap of the mount. literally the mapping context for where this is happening πŸ—ΊοΈ
  • dentry β€” the file. yes, just a file, she's the main character here πŸŽ€
  • acl_name β€” the acl name. this is the label that says which acl we're talking about ✨
  • kacl β€” the acl struct. the actual posix acl data in kernel form 🫢

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: this hook runs a permission check before setting posix acls πŸ”₯ and the posix acls sitting inside kacl are identified by acl_name β€” like, kacl is the payload and acl_name is the name tag telling everyone which one it is 🏷️✨

that's it. that's the whole job. she's not doing your taxes, she's just checking permission πŸ’…


⭐ RETURN ⭐

Returns 0 if permission is granted πŸŽ‰ (a zero is a slay here, ngl β€” zero equals yes in this house).


🌈 SEE ALSO 🌈

the kernel file lives at ./security/security.c β€” and then there's this absolute wall of friends. bestie I'm not skipping a single one, every name is here, in order, fr fr πŸ˜­πŸ’–


πŸ’€ real talk: that list is long enough to be its own group chat, but every single one is a real reference, iykyk. don't skip 'em.

and that's the whole page, bestie 🫢 this lil number comes from the ./security source and it's dated October 2026 β€” so like, future vibes only 🌸✨ mwah, go check some acl permissions responsibly πŸ’…πŸŽ€

πŸ“¦ where this page comes from