fsverity_verify_signature(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fsverity_verify_signature(9) β€” check a verity file's signature ✨

okay so bestie, welcome to the Kernel API Manual page for fsverity_verify_signature(9). This is the signature-verifying main character of fs-verity, and we're gonna get into it. No cap. 🫢


✨ NAME ✨

fsverity_verify_signature β€” check a verity file's signature πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int fsverity_verify_signature (const struct fsverity_info *vi , const u8
       *signature , size_t sig_size );

πŸ’… ARGUMENTS πŸ’…

  • vi β€” the file's fsverity_info. It's the file's little info badge, iykyk. πŸͺͺ
  • signature β€” the file's built-in signature. πŸ”
  • sig_size β€” size of signature in bytes, or 0 if no signature. πŸ“

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea: if the file includes a signature of its fs-verity file digest, this function verifies it against the certificates in the fs-verity keyring. That's the whole assignment. πŸ”‘

And note β€” signatures are verified regardless of the state of the 'fsverity_require_signatures' variable, and the LSM subsystem relies on this behavior to help enforce file integrity policies. This is highkey important, so don't mess with it casually. πŸ›‘οΈ

Please discuss changes with the LSM list (thank you!). Fr fr, talk to the LSM girlies first. πŸ’Œ

🌈 RETURN 🌈

  • 0 on success (signature valid or not required); -errno on failure. βœ…πŸ˜­

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./fs/verity/signature.c β€” go read the source, bestie. πŸ“–

Signed off with πŸ’– from the ./fs/verity source/version and the October 2026 date β€” fsverity_verify_signature(9), periodt. πŸŽ€

πŸ“¦ where this page comes from