selinux_netl...nnect_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, this is the Kernel API Manual page for selinux_netl...nnect_locked(9) β€” yes, the header keeps the title abbreviated like that, but the actual function is selinux_netlbl_socket_connect_locked, and its whole job is to label a client-side socket on connect. slay.


✨ SYNOPSIS ✨

int selinux_netlbl_socket_connect_locked (struct sock *sk , struct
sockaddr *addr );

🫢 ARGUMENTS 🫢

  • sk β€” the socket to label, bestie πŸ’–
  • addr β€” the destination address

πŸ’… DESCRIPTION πŸ’…

So the mission here is: attempt to label a connected socket that already has the socket locked with NetLabel, using the given address. That's it, that's the vibe. ✨

And the return tea? It returns zero values on success, negative values on failure. no cap. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

go off and read these, iykyk:


mwah πŸ’‹ signing off with the footer tea: source/version is ./security/selinux, date is October 2026, and the footer title is selinux_netl...nnect_locked(9). periodt. 🌸

πŸ“¦ where this page comes from