selinux_netl...nnect_locked(9)
π 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:
- Kernel file:
./security/selinux/netlabel.c selinux_netlbl_sidlookup_cached(9)selinux_netlbl_sock_genattr(9)selinux_netlbl_sock_getattr(9)selinux_netlbl_cache_invalidate(9)selinux_netlbl_err(9)selinux_netlbl_sk_security_free(9)selinux_netlbl_sk_security_reset(9)selinux_netlbl_skbuff_getsid(9)selinux_netlbl_skbuff_setsid(9)selinux_netlbl_sctp_assoc_request(9)selinux_netlbl_inet_conn_request(9)selinux_netlbl_inet_csk_clone(9)selinux_netlbl_sctp_sk_clone(9)selinux_netlbl_socket_post_create(9)selinux_netlbl_sock_rcv_skb(9)selinux_netlbl_option(9)selinux_netlbl_socket_setsockopt(9)selinux_netlbl_socket_connect_helper(9)selinux_netlbl_socket_connect(9)
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
- 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