ipe_bdev_setintegrity(9)
π ipe_bdev_setintegrity(9) β the Kernel API Manual, bestie edition
okay so real talk, this one's from the Kernel API Manual and it's literally about saving integrity data from a bdev into IPE's LSM blob. yes that's a lot of letters. we got this π«Ά
β¨ SYNOPSIS β¨
int ipe_bdev_setintegrity (struct block_device *bdev , enum
lsm_integrity_type type , const void *value , size_t size );
the way that signature just sits there. iconic. copy it exactly, do not touch it, periodt π
π ARGUMENTS π
bdevβ hands you a pointer to ablock_devicethat's holding the LSM blob. that's the whole vibe, it's the container, she's the main character πtypeβ the integrity type. which flavor of integrity are we talking about, bestie? this tells you πΈvalueβ the actual value you're storing. the goods. the payload. no cap πsizeβ the size ofvalue. yeah we keep track of that, we're not animals β¨
π¦ DESCRIPTION π¦
so like, this hook is currently used to save dm-verity's root hash into the LSM blob β OR β the existence of a validated signed dm-verity root hash. that's it, that's the job. it's giving very specific, very focused, very demure energy π
lowkey important: it says "currently", so like. don't go building your whole personality on it forever, iykyk π
π₯ RETURN π₯
0on success β slay, we ate π- if an error occurs, the function returns the
-errno. so a negative errno, meaning something went wrong and it's telling you exactly which thing π
π SEE ALSO π
the kernel file ./security/ipe/hooks.c (go read it, it's right there) plus her whole friend group:
ipe_bprm_check_security(9)ipe_bprm_creds_for_exec(9)ipe_mmap_file(9)ipe_file_mprotect(9)ipe_kernel_read_file(9)ipe_kernel_load_data(9)ipe_unpack_initramfs(9)ipe_bdev_free_security(9)ipe_inode_setintegrity(9)
and that's the whole page, bestie!! this little gem lives in ./security/ipe and it's dated October 2026 β yes, from the future, we don't ask questions πβ¨ go forth and save those root hashes π§π
π¦ 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