selinux_netl...kbuff_setsid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌟

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