ima_post_ke...te_or_update(9)
β¨ ima_post_key_create_or_update β the Kernel API Manual, bestie edition π
okay so likeβ¦ quick vibe check on the name first: this page is ima_post_key_create_or_update(9), from the Kernel API Manual, and honestly the title alone is giving "I have a very specific job and I do it well." π
It lives in the kernel's .9 section (that's the kernel API girlies, iykyk), and it is literally about measuring asymmetric keys. Not appraising them. Measuring. There's a difference and she will not let you forget it. π
πΈ NAME πΈ
ima_post_key_create_or_update β measure asymmetric keys. that's it, that's the whole personality. β¨
π¦ SYNOPSIS π¦
void ima_post_key_create_or_update (struct key *keyring , struct key
*key , const void *payload , size_t payload_len , unsigned long flags ,
bool create );
no cap, that's the exact signature β copy it character for character or the compiler will simply not hear you out. π
π ARGUMENTS π
six little besties walk into a function call, and here's who they are:
keyringβ the keyring that the key is linked to. she's the group chat the key got added to π«Άkeyβ the created or updated key itself. main character energy fr fr πpayloadβ the data used to instantiate or update the key. this is the actual content, the lore, the substance πpayload_lenβ the length ofpayload. yes we're counting. yes it matters πflagsβ key flags. the little metadata sprinkles βcreateβ a flag indicating whether the key was created or updated. was she born or was she reborn? the flag knows π
π₯ DESCRIPTION π₯
so here's the tea β:
keys can only be measured, not appraised. that's the rule, that's the boundary, we respect it.
the payload data used to instantiate or update the key is what gets measured. so like, whatever payload you hand over β whether it's a fresh new key or a glow-up of an existing one β that's the thing on the measurement agenda. β¨
ngl that's the entire behaviour. don't go looking for hidden options, there are none, she is exactly what she says she is π
π SEE ALSO π
- Kernel file
./security/integrity/ima/ima_asymmetric_keys.cβ go read the source, bestie, that's where the real gossip lives πΈ
and that's the whole page! hope this was helpful and that you feel iconic and informed π¦π
sign-off moment: this little gem is sourced from ./security/integrity/ima and it's dated October 2026 β so mark your calendars, screenshot the version, and go measure some keys responsibly ππ«Άπ
π¦ 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