selinux_netlbl_option(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, iykyk
  • optname β€” 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:

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