restrict_lin..._and_machine(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

  1. the built-in keyring
  2. the secondary keyring
  3. 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 πŸ’œ

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