evm_write_key(9)
π evm_write_key(9) π
hii bestie!! welcome to the Kernel API Manual β this is the page for evm_write_key(9), and we are gonna make it make sense, i promise π«Άβ¨
β¨ NAME β¨
evm_write_keyβ thewrite()for<securityfs>/evm, periodt π
π SYNOPSIS π
okay so here's the signature, copied exactly so u can trust it:
ssize_t evm_write_key (struct file *file , const char __user *buf ,
size_t count , loff_t *ppos );
π§ ARGUMENTS π§
fileβ file pointer, not actually used πbufβ where to get the data fromcountβ bytes sentpposβ where to start
bestie note: file is literally not actually used here, no cap π
πΈ DESCRIPTION πΈ
okay so the whole vibe is: this is used to signal that key is on the kernel key ring π
here's the little to-do list it's giving:
- get the integrity hmac key from the kernel key ring
- create list of hmac protected extended attributes
and then β Returns number of bytes written or error code, as appropriate β¨
π¦ SEE ALSO π¦
- Kernel file:
./security/integrity/evm/evm_secfs.c evm_read_key(9)evm_read_xattrs(9)evm_write_xattrs(9)
xoxo π this page's source/version is ./security/integrity/evm, and its date is October 2026. now go slay those hmac protected extended attributes, 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