selinux_netl...kbuff_setsid(9)
π NAME π
okay so this page is selinux_netl...kbuff_setsid(9) from the Kernel API Manual, and the function it's hyping up is selinux_netlbl_skbuff_setsid β which, say it with me, sets the NetLabel on a packet given a sid. that's the whole vibe bestie π
β¨ SYNOPSIS β¨
int selinux_netlbl_skbuff_setsid (struct sk_buff *skb , u16 family , u32 sid );
it returns an int, no cap π«Ά
πΈ ARGUMENTS πΈ
skbβ the packet. the actual lil guy we're labeling β¨familyβ protocol family πsidβ the SID π
π¦ DESCRIPTION π¦
Description: call the NetLabel mechanism to set the label of a packet using sid.
Returns zero on success, and negative values on failure. that's it, that's the function, she's simple and she eats π
π SEE ALSO π
- 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_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, the whole netlabel friend group fr fr π«Ά
lowkey a whole family of selinux_netlbl_* functions and this one is just the packet-labeling one. go read the others if you want the full lore, iykyk π
mwah, that's the page!! this one lives in ./security/selinux and it's dated October 2026 β so go forth and label those packets bestie, slay πβ¨π
π¦ 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