evm_inode_remove_acl(9)
π 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 β
zeroon success β slay, we ate π-EPERMon 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:
evm_read_protected_xattrs(9)evm_verifyxattr(9)evm_inode_setxattr(9)evm_inode_removexattr(9)evm_inode_set_acl(9)evm_metadata_changed(9)evm_revalidate_status(9)evm_fix_hmac(9)evm_inode_post_setxattr(9)evm_inode_post_set_acl(9)evm_inode_post_removexattr(9)evm_inode_post_remove_acl(9)evm_inode_setattr(9)evm_inode_post_setattr(9)
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
- 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