rxrpc_sock_...rity_keyring(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ rxrpc_sock_...rity_keyring(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” yes, the real one, the kernel one, not your silly little app docs πŸ’… this page is all about rxrpc_sock_set_security_keyring, and honestly? it's giving "small function, big responsibilities." let's get into it πŸ”₯


✨ NAME ✨

rxrpc_sock_set_security_keyring β€” sets the security keyring for a kernel service, no cap πŸŽ€


🌸 SYNOPSIS 🌸

int rxrpc_sock_set_security_keyring (struct sock *sk , struct key *keyring );

like, that's the whole signature. int in, int out, two pointers in between. iconic behavior honestly ⭐


πŸ’– ARGUMENTS πŸ’–

  • sk β€” the socket you're setting the keyring on. it's a struct sock *, so yk, the socket, the vibe, the main character 🫢
  • keyring β€” the keyring you're setting. a struct key *. this is the actual keyring being handed over, don't lose it πŸ™ˆ

🧚 DESCRIPTION 🧚

so what does it do? it sets the server security keyring on an rxrpc socket. lowkey simple, highkey important πŸ”‘

and like β€” this keyring is what provides the encryption keys for a kernel service. so it's not decorative. it's the whole "your stuff is encrypted" thing. treat it with respect, bestie πŸ’œ


πŸ‘‘ RETURN πŸ‘‘

  • 0 if it worked β€” slay, success, we love to see it ✨
  • a negative error code otherwise β€” meaning something went wrong, check that errno energy 😭
no in-between, no "maybe," just 0 or negative. periodt. πŸ’…

🌈 SEE ALSO 🌈


okay that's the page!! and before you go β€” the footer energy: this beauty comes from the source tree at ./net/rxrpc, dated October 2026, and it lives under the manual name for rxrpc_sock_...rity_keyring(9) (yes, with the little ... in the middle, that's just how it's titled, don't come for me πŸ’€). bye bestie, go set some keyrings responsibly πŸ“πŸ’–

πŸ“¦ where this page comes from