netlbl_unlabel_getattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual β€” this page is netlbl_unlabel_getattr(9), and yes, the (9) is doing its little kernel-doc thing πŸ’…

πŸŽ€ NAME πŸŽ€

netlbl_unlabel_getattr β€” get the security attributes for an unlabled packet ✨

🐚 SYNOPSIS 🐚

int netlbl_unlabel_getattr (const struct sk_buff *skb , u16 family ,
       struct netlbl_lsm_secattr *secattr );

🫢 ARGUMENTS 🫢

  • skb β€” the packet πŸ’Œ
  • family β€” protocol family
  • secattr β€” the security attributes

πŸ”₯ DESCRIPTION πŸ”₯

okay so the whole vibe here is: determine the security attributes, if any, for an unlabled packet and return them in secattr. That's the mission, no cap.

It returns zero on success and negative values on failure. That's the contract 😭✨

🌈 SEE ALSO 🌈

mwah πŸ’‹ β€” source/version: ./net/netlabel Β· date: October 2026 πŸ¦‹

πŸ“¦ where this page comes from