fsverity_verify_signature(9)
π 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'sfsverity_info. It's the file's little info badge, iykyk. πͺͺsignatureβ the file's built-in signature. πsig_sizeβ size ofsignaturein bytes, or0if 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 π
0on success (signature valid or not required);-errnoon 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
- 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