rxrpc_sock_...rity_keyring(9)
π¦ 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 astruct sock *, so yk, the socket, the vibe, the main character π«Άkeyringβ the keyring you're setting. astruct 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 π
0if 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 π
- the kernel file
./net/rxrpc/server_key.cβ go read it, iykyk π rxrpc_sock_set_manage_response(9)β another one, go look π¦
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
- 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