smack_from_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smack_from_skb(9) β€” a Kernel API Manual moment πŸ’…

okay so this is the Kernel API Manual entry for smack_from_skb, and it is short, cute, and very β€œread the secmark, bestie.” no cap.


🌸 NAME 🌸

smack_from_skb β€” Smack data from the secmark in an skb.


✨ SYNOPSIS ✨

struct smack_known * smack_from_skb (struct sk_buff *skb );

literally that’s the whole flex: return type struct smack_known *, function name smack_from_skb, argument struct sk_buff *skb.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” packet. that’s it. the packet. the little network vibe delivery system.

πŸ’– DESCRIPTION πŸ’–

Returns smack_known of the secmark or NULL if that won’t work.

that’s the whole tea, bestie: it returns the smack_known of the secmark, or NULL if that won’t work. no extra lore, no secret bonus flags. periodt.


πŸŽ€ SEE ALSO πŸŽ€

the kernel file is ./security/smack/smack_lsm.c, and these are the see-also besties β€” all of them, in order, no skipping:

mwah πŸ’‹ that’s the page, bestie β€” it came from ./security/smack, dated October 2026, and it’s smack_from_skb(9). periodt. 🫢

πŸ“¦ where this page comes from