add_to_secondary_keyring(9)
π add_to_secondary_keyring(9) π
okay bestie, welcome to the Kernel API Manual β this one is literally called add_to_secondary_keyring(9) and it does exactly what it says on the tin: it adds a key to the secondary keyring. no cap. let's get into it β¨
πΈ SYNOPSIS πΈ
void add_to_secondary_keyring (const char *source , const void *data ,
size_t len );
that's the whole signature, bestie β return type void, three arguments, and absolutely no surprises. slay π
π ARGUMENTS π
sourceβ where the key is coming from, like the origin story of the key fr fr. it's aconst char *.dataβ the blob that's holding the key. yes, a whole blob. iconic. it's aconst void *.lenβ the length of that data blob, because we gotta know how much blob we're dealing with. it's asize_t.
π¦ DESCRIPTION π¦
so the vibe is: this function adds a key to the secondary keyring. that's the main character energy right there π
but there's a catch, and it's important β the key must be vouched for by a key in the builtin, machine or secondary keyring itself. like, it can't just show up uninvited. it needs a co-sign from one of those keyrings or it's not getting in. periodt. π₯
ngl bestie, this is the whole trust-check situation β no vouch, no entry. keep that in mind.
β SEE ALSO β
- Kernel file
./certs/system_keyring.c restrict_link_by_builtin_trusted(9)restrict_link_by_digsig_builtin(9)restrict_link_by_builtin_and_secondary_trusted(9)restrict_link_by_digsig_builtin_and_secondary(9)restrict_link_by_builtin_secondary_and_machine(9)verify_pkcs7_message_sig(9)verify_pkcs7_signature(9)
like, go read those if you wanna understand the whole trust web, iykyk πΈοΈπ
and that's the page, bestie π«Ά this one's from ./certs, dated October 2026, and it's literally add_to_secondary_keyring(9) all the way down. mwah πβ¨
π¦ 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