selinux_netl...kbuff_getsid(9)
π selinux_netlbl_skbuff_getsid β the NAME moment β¨
okay so bestie, welcome to the Kernel API Manual π β this page is all about
selinux_netlbl_skbuff_getsid β Get the sid of a packet using NetLabel π¦
(also real talk, the header/footer on this one gets truncated to selinux_netl...kbuff_getsid(9) because apparently even manpages have a character limit, and honestly? relatable π
)
β¨ SYNOPSIS β¨
int selinux_netlbl_skbuff_getsid (struct sk_buff *skb , u16 family , u32
*type , u32 *sid );
that's it. that's the whole vibe check. four args, one int return, no cap π₯
π ARGUMENTS π
skbβ the packet π like, the actual packet we're doing all this forfamilyβ the protocol family πΈtypeβ the NetLabel labeling protocol type πsidβ the SID β (yes, that's the whole description. it's giving "confident and brief")
π§ DESCRIPTION π§
so here's the tea β β this function calls the NetLabel mechanism to grab the security attributes of the given packet, and then uses those attributes to figure out the correct context/SID to assign to that packet. literally matchmaker energy π«Ά (packet, meet SID).
returns zero on success π and negative values on failure π β so if you get a negative back, something went sideways, no cap.
π¦ SEE ALSO π¦
the kernel file, bestie:
- Kernel file
./security/selinux/netlabel.cπ (iykyk)
and the whole friend group π:
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_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_locked(9)selinux_netlbl_socket_connect(9)
like genuinely, go read selinux_netlbl_skbuff_setsid(9) next, it's the sibling of this one and it serves π
and that's the page!! πΈ brought to you by ./security/selinux, dated October 2026, and signed off by the iconically truncated selinux_netl...kbuff_getsid(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