netlbl_audit_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netlbl_audit_start(9) πŸ’–

okay so this is a page from the Kernel API Manual, and the star of the show is netlbl_audit_start β€” bestie, we're starting an audit message. let's get into it ✨


🌸 NAME 🌸

netlbl_audit_start β€” start an audit message πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct audit_buffer * netlbl_audit_start (int type , struct netlbl_audit
*audit_info );

like yes, that's the whole signature, she's not complicated πŸ’…


🌈 ARGUMENTS 🌈

  • type β€” the audit message type, fr fr. that's what kind of message you're making 🫢
  • audit_info β€” the NetLabel audit information. this is your data bag, no cap πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does she do? she starts an audit message using the type you handed her in type, and then she fills that audit message up with some fields that are common to all NetLabel audit messages. iconic behavior honestly ✨

🚨 okay important caveat, bestie: this function should only be used by protocol engines β€” not LSMs. like, that's the rule. respect the rule πŸ™ˆ

and the return vibe? she returns a pointer to the audit buffer on success πŸŽ‰, and NULL on failure 😭. that's it, that's the tea ⭐


πŸ’œ SEE ALSO πŸ’œ

so the kernel file lives at ./net/netlabel/netlabel_kapi.c, and here's the whole friend group β€” go say hi πŸ’…:


and that's the whole page, bestie!! 🧚 this one came from ./net/netlabel, dated October 2026 β€” mwah, study it, love it, cite it correctly, periodt πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from