evm_inode_remove_acl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… evm_inode_remove_acl(9) πŸ’…

okay so bestie, this is a page straight out of the Kernel API Manual β€” it's evm_inode_remove_acl(9), and it's lowkey one of the most protective little functions in the whole EVM squad. let's get into it 🫢


✨ NAME ✨

evm_inode_remove_acl β€” protect the EVM extended attribute from posix acls πŸ›‘οΈβœ¨


🌸 SYNOPSIS 🌸

int evm_inode_remove_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name );

πŸŽ€ ARGUMENTS πŸŽ€

  • idmap β€” the idmap of the mount, she's giving "which mount are we even talking about" energy πŸ’«
  • dentry β€” pointer to the affected dentry, aka the actual file-ish thing we're messing with πŸ¦‹
  • acl_name β€” name of the posix acl, literally just the name, no cap πŸ’…

🌈 DESCRIPTION 🌈

so the whole point here is preventing posix acls from being removed in a way that would cause the EVM HMAC to be re-calculated and the 'security.evm' xattr to get updated β€” unless the existing 'security.evm' is valid, okay?? that's the vibe check. 🧚

like, this function is the bouncer at the club, and the club is your 'security.evm' xattr. nobody touches it unless they're on the list. periodt. πŸ‘‘


⭐ RETURN ⭐

  • zero on success β€” slay, we ate πŸ’–
  • -EPERM on failure β€” not today, bestie πŸ˜­πŸ™ˆ
ngl, if you see -EPERM, the operation was not permitted. that's it, that's the whole tea. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./security/integrity/evm/evm_main.c if you wanna go read the source like the main character you are πŸ“–βœ¨

and here's the whole friend group, they're all iconic:


and that's the page!! this little baddie comes to you from ./security/integrity/evm and she's dated October 2026 β€” go forth and protect those xattrs, bestie πŸ¦‹πŸ’œβœ¨

πŸ“¦ where this page comes from