restrict_li...eyring_chain(9)
okay bestie, welcome to the restrict_li...eyring_chain(9) page from the Kernel API Manual π
β¨ this one is all about restricting additions to a ring of public keys, and yes it's giving kernel-keyring security realness ππ¦
πΈ NAME πΈ
restrict_link_by_key_or_keyring_chain β restrict additions to a ring of public keys using the restrict_key information stored in the ring. periodt π
β¨ SYNOPSIS β¨
int restrict_link_by_key_or_keyring_chain (struct key *dest_keyring ,
const struct key_type *type , const union key_payload *payload , struct
key *trusted );
π ARGUMENTS π
dest_keyringβ the keyring being linked to, bestie π«typeβ the type of key being added πpayloadβ the payload of the new key πtrustedβ a key or ring of keys that can be used to vouch for the new cert π«Ά
π DESCRIPTION π
so here's the vibe: it checks the new certificate against the key or keys passed in the data parameter, and also against the keys already linked to the destination keyring πβ¨ if one of those is the signing key and validates the new certificate, then it marks the new certificate as being ok to link π β
and the returns are literally:
0if the new certificate was accepted π-ENOKEYif we couldn't find a matching parent certificate in the trusted list π-EKEYREJECTEDif the signature check fails π-ENOPKGif the signature uses unsupported crypto π- or some other error if there is a matching certificate but the signature check cannot be performed π«
π SEE ALSO π
- Kernel file
./crypto/asymmetric_keys/restrict.cπ§ restrict_link_by_signature(9)restrict_link_by_ca(9)restrict_link_by_digsig(9)restrict_link_by_key_or_keyring(9)
mwah π this slay little page comes from ./crypto/asymmetric_keys, dated October 2026, and it's literally the restrict_li...eyring_chain(9) page β no cap, that's the sign-off ππ«
π¦ 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