keyring_search(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ keyring_search(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, welcome to the Kernel API Manual β€” this page is literally about keyring_search(9), and it's here to search the supplied keyring tree for a matching key. πŸ’… no cap.


✨ NAME ✨

keyring_search β€” search the supplied keyring tree for a matching key. that's the whole assignment, bestie. πŸŽ€


🌸 SYNOPSIS 🌸

key_ref_t keyring_search (key_ref_t keyring , struct key_type *type ,
const char *description , bool recurse );

πŸ’– ARGUMENTS πŸ’–

  • keyring β€” the root of the keyring tree to be searched. it's giving main character of the search, periodt. πŸ‘‘
  • type β€” the type of keyring we want to find. gotta match the right vibe. πŸ¦‹
  • description β€” the name of the keyring we want to find. yep, it's the name tag bestie. 🏷️
  • recurse β€” True to search the children of keyring also. so if you want the whole fam involved, this is the one. 🌈

πŸ”₯ DESCRIPTION πŸ”₯

It's exactly like keyring_search_rcu above, bestie β€” but this one is using the current task's credentials, plus type's default matching function and its preferred search method. slay, honestly. ✨


🌟 SEE ALSO 🌟

Kernel file ./security/keys/keyring.c β€” and the whole icon lineup: key_put_tag(9), key_remove_domain(9), restrict_link_reject(9), keyring_search_rcu(9), keyring_restrict(9), key_link(9), key_unlink(9), key_move(9), keyring_clear(9). iykyk πŸ’œ


mwah πŸ’‹ β€” this cutie came from ./security/keys, dated October 2026, and it's keyring_search(9) in the Kernel API Manual forever. bye bestie! 🫢

πŸ“¦ where this page comes from