selinux_netlbl_sock_rcv_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… selinux_netlbl_sock_rcv_skb(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding era 🫢. Today's main character is selinux_netlbl_sock_rcv_skb, and honestly? She's doing a lot of quiet little work so your inbound packets get checked properly. Let's get into it.


🌸 NAME 🌸

selinux_netlbl_sock_rcv_skb β€” literally does an inbound access check using NetLabel πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int selinux_netlbl_sock_rcv_skb (struct sk_security_struct *sksec ,
struct sk_buff *skb , u16 family , struct common_audit_data *ad );

✨ ARGUMENTS ✨

  • sksec β€” the sock's sk_security_struct, i.e. the little security struct attached to the socket πŸ‘‘
  • skb β€” the packet itself, the whole reason we're here πŸ“¦
  • family β€” the protocol family 🌈
  • ad β€” the audit data πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So what she actually does: she fetches the NetLabel security attributes off of skb and then performs an access check against the receiving socket. That's the whole vibe check πŸ”₯.

Returns zero on success, and negative values on error. No cap. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

like, the whole netlabel friend group showed up for this one πŸ˜­πŸ’•


ngl this one's short but she's important β€” she's the inbound check, so treat her right πŸ“

bye bestie, mwah πŸ’‹ β€” this page lives in ./security/selinux, dated October 2026, and it's literally called selinux_netlbl_sock_rcv_skb(9). slay, go read the kernel πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from