evm_write_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the write() 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 from
  • count β€” bytes sent
  • ppos β€” 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 πŸ¦‹


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