auditd_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… auditd_set(9) β€” it's from the Kernel API Manual, bestie, and it's giving kernel-internals-core

okay so picture this: you're deep in the kernel, the audit daemon is being A Whole Thing, and somebody has to actually keep track of the connection state. That somebody is this function. Let's get into it 🫢


✨ NAME ✨

auditd_set β€” literally just "Set/Reset the auditd connection state". That's the whole vibe check, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int auditd_set (struct pid *pid , u32 portid , struct net *net , struct
sk_buff *skb , bool *ack );

like. five arguments. iconic of her honestly πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • pid β€” the auditd PID. yeah. that PID. the auditd one. πŸ‘‘
  • portid β€” the auditd netlink portid, aka where the netlink stuff actually points at πŸ¦‹
  • net β€” a pointer to the auditd network namespace. yes it's a namespace pointer, and yes it matters, hold that thought for the DESCRIPTION
  • skb β€” the netlink command coming in from the audit daemon itself, main character energy fr fr
  • ack β€” the netlink ack flag, and here's the little detail bestie: it gets cleared if ack'd here πŸ‘€ so like, if this function handles the ack, that flag is getting zeroed out

🌸 DESCRIPTION 🌸

so what does she actually do? This function will obtain and drop network namespace references as necessary. that's it, that's the job β€” taking and releasing netns refs when it needs to, periodt ✨

Returns zero on success, negative values on failure. Very demure. Very standard. But don't get it twisted β€” failure is negative numbers, so always check 😭

ngl the description is short but that's genuinely all there is, use the SEE ALSO if you want the whole friend group

🌈 SEE ALSO 🌈

okay this is the most unhinged part of the whole page β€” the SEE ALSO list is HUGE and honestly ate. It's a kernel file plus a truly slay amount of sibling functions, so buckle up πŸ’–

The kernel file we're living in: ./kernel/audit.c

Then the structs:

  • struct audit_net(9)
  • struct auditd_connection(9)
  • struct audit_ctl_mutex(9)

Then the city of functions, in order, no skips, no cuts 🧚:

like?? that's the whole audit subsystem in one friend group chat. obsessed πŸ”₯


and that's the page, bestie πŸ’œ it lives in ./kernel, it's dated October 2026, and it goes by auditd_set(9) β€” go forth and manage that connection state, iykyk πŸŽ€βœ¨

πŸ“¦ where this page comes from