selinux_netlbl_option(9)
π selinux_netlbl_option(9)
ok so this is a page from the Kernel API Manual, bestie β it's the selinux_netlbl_option one, and honestly it's a short little icon. let's get into it π
β¨ NAME β¨
selinux_netlbl_option β literally just answers the question "is this a NetLabel option?" π΅οΈββοΈ
πΈ SYNOPSIS πΈ
int selinux_netlbl_option (int level , int optname );
that's it, that's the whole vibe check. two ints in, one int out. π
π¦ ARGUMENTS π¦
levelβ the socket level or protocol, iykykoptnameβ the socket option name
β DESCRIPTION β
So what does it actually do? It returns true if level and optname refer to a NetLabel option. that's the whole thing. no cap. π₯
Think of it as the little helper bestie for selinux_netlbl_socket_setsockopt β it's the one doing the "wait, is this one of ours?" check so the big function doesn't have to. main character support role energy, fr fr. π
π SEE ALSO π
okay this is the part where the whole friend group shows up. π«Ά
Kernel file:
./security/selinux/netlabel.c
and the full squad, all of these are (9) manpages:
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_socket_setsockopt(9)selinux_netlbl_socket_connect_helper(9)selinux_netlbl_socket_connect_locked(9)selinux_netlbl_socket_connect(9)
like, yes, that's a lot of selinux_netlbl_ prefixes. that's the family name, we don't make the rules π
quick note bestie: this page lives under ./security/selinux, and it's dated October 2026 β so yeah, it's giving future-dated kernel lore β¨
anyway ily, go read selinux_netlbl_socket_setsockopt(9) next, it's the one that actually called this function. mwah ππ§ββοΈπ
π¦ 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