ubifs_sb_verify_signature(9)
π ubifs_sb_verify_signature π
okay bestie, so this page is ubifs_sb_verify_signature(9) from the Kernel API Manual, and it's literally the vibe check for a superblock's signature β¨
π NAME π
ubifs_sb_verify_signature β verify the signature of a superblock π«Ά
πΈ SYNOPSIS πΈ
int ubifs_sb_verify_signature (struct ubifs_info *c , const struct
ubifs_sb_node *sup );
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object, your main character struct πsupβ the superblock node itself, the one getting checked π
β¨ DESCRIPTION β¨
So here's the tea: to support offline signed images, the superblock can be signed with a PKCS#7 signature π₯ The signature is placed directly behind the superblock node, chilling in an ubifs_sig_node π
Returns 0 when the signature can be successfully verified, or a negative error code if not π
no cap, a negative return means the signature did not verify β that's the whole point of the check π
π SEE ALSO π
Kernel file ./fs/ubifs/auth.c, plus these iconic homies:
__ubifs_node_calc_hash(9)ubifs_hash_calc_hmac(9)ubifs_prepare_auth_node(9)__ubifs_hash_get_desc(9)ubifs_bad_hash(9)__ubifs_node_check_hash(9)ubifs_init_authentication(9)__ubifs_exit_authentication(9)ubifs_node_calc_hmac(9)__ubifs_node_insert_hmac(9)__ubifs_node_verify_hmac(9)ubifs_hmac_wkm(9)
and that's the whole page, bestie, you ate it π this little baddie lives in ./fs/ubifs, it's dated October 2026, and it's filed under ubifs_sb_verify_signature(9) β slay ππ§
β 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