evm_inode_setxattr(9)
π evm_inode_setxattr β¨
okay so this is a page from the Kernel API Manual, section 9 β aka the kernel-internals zone, bestie. it's giving "you're deep in the source tree now" energy π§
πΈ NAME πΈ
evm_inode_setxattr β the bouncer at the club door of the EVM extended attribute π
like, it protects it, fr.
π SYNOPSIS π
int evm_inode_setxattr (struct mnt_idmap *idmap , struct dentry *dentry
, const char *xattr_name , const void *xattr_value , size_t
xattr_value_len , int flags );
π¦ ARGUMENTS π¦
idmapβ the idmap of the mount, iykyk π«Άdentryβ a pointer to the dentry that's being affectedxattr_nameβ pointer to the name of the extended attribute we're messing withxattr_valueβ pointer to the new value for that extended attributexattr_value_lenβ pointer to the length of that new extended attribute valueflagsβ the flags that get passed on into filesystem operations π₯
β DESCRIPTION β
so before the kernel even thinks about letting the 'security.evm' protected xattr get updated, it verifies that the existing value is valid. vibe check first, always π
and here's the main character energy: only the kernel should have access to the EVM encrypted key that's needed to calculate the HMAC. so userspace is not allowed to write the HMAC value β no cap, that door is locked π
also, writing 'security.evm' requires CAP_SYS_ADMIN privileges. periodt. π
π₯ SEE ALSO π₯
- Kernel file
./security/integrity/evm/evm_main.c evm_read_protected_xattrs(9)evm_verifyxattr(9)evm_inode_removexattr(9)evm_inode_set_acl(9)evm_inode_remove_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)
ok that's the whole page bestie, go read the source if you want the real tea π
anyway, this little icon comes from ./security/integrity/evm and it's dated October 2026 β mwah, love that for us πππ¦
π¦ 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