restrict_lin..._and_machine(9)
β¨ restrict_lin..._and_machine(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little kernel function with a very long name and honestly? it's giving gatekeeper energy β quite literally, because its whole job is deciding who gets to be in the keyring. iykyk π
πΈ NAME πΈ
restrict_link_by_builtin_secondary_and_machine β it restricts keyring addition. that's it, that's the vibe π
π¦ SYNOPSIS π¦
int restrict_link_by_builtin_secondary_and_machine(struct key *dest_keyring,
const struct key_type *type,
const union key_payload *payload,
struct key *restrict_key);
literally the whole signature, no notes. copy it exactly, queen π
π ARGUMENTS π
so it takes four things, and here's what each one is doing at the function party:
dest_keyringβ the keyring that's being linked to. the destination. the place where the new key wants to live πtypeβ the type of the key that's being added. what kind of key is it, bestie? πpayloadβ the payload of the new key. the actual contents, the main character itself β¨restrict_keyβ a ring of keys that can be used to vouch for the new cert. think of it as the friend group that has to say "yeah, we know her" π«Ά
π DESCRIPTION π
so here's the tea β: this function restricts the addition of keys into a keyring β the key trying to get added has to be vouched for by a key that lives in one of three places:
- the built-in keyring
- the secondary keyring
- the machine keyring
any one of those three can do the vouching, and then the new key gets to slide in. no vouch, no entry π it's a whole vibe check for cryptographic keys, and honestly? iconic.
π SEE ALSO π
- the 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)add_to_secondary_keyring(9)verify_pkcs7_message_sig(9)verify_pkcs7_signature(9)
go read all of them, fr fr, they're besties too π§
no cap, this is the entire page β nothing skipped, nothing invented. every option, every argument, every reference, all of it. slay π
and that's a wrap, bestie! π this one came out of ./certs, dated October 2026, and the header says restrict_lin..._and_machine(9) (yes the title is literally truncated like that, we don't make the rules π). mwah, go forth and keyring 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