selinux_netl...nnect_helper(9)
π selinux_netl...nnect_helper(9) β from the Kernel API Manual π
okay bestie, welcome to the group chat, this one's a kernel-page β¨ it lives in the Kernel API Manual and it's all about helping NetLabel figure out what a client-side socket is the moment it connects π¦ so like, label energy from the very first handshake, no cap.
β¨ NAME β¨
selinux_netlbl_socket_connect_helper β literally here to help label a client-side socket on connect π
πΈ SYNOPSIS πΈ
int selinux_netlbl_socket_connect_helper (struct sock *sk , struct sockaddr *addr );
that's the whole vibe: returns an int, takes a struct sock * and a struct sockaddr *, slay π
π«Ά ARGUMENTS π«Ά
skβ the socket to label π that's the main character right thereaddrβ the destination address π the "where's this socket even going" of it all
π DESCRIPTION π
So the actual plot: it attempts to label a connected socket with NetLabel using the address you handed it π
Returns zero values on success, negative values on failure β so like, 0 is the good ending, anything negative is the "π not today" ending. Not me being dramatic, that's just how it is, fr fr.
π₯ SEE ALSO π₯
Kernel file ./security/selinux/netlabel.c β go read it, iykyk π§
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_locked(9)selinux_netlbl_socket_connect(9)
the whole netlabel fam showed up to the function list, we love a supportive squad πβ¨
okay and that's the whole page β no hidden lore, no extra flags, that's genuinely it, bestie π
cute little sign-off π this one ships out of ./security/selinux, dated October 2026, and the page is selinux_netl...nnect_helper(9) in case you forgot the title already (we don't blame you, it's a long one π). bye bestie, go label some sockets ππ¦
π¦ 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