kauditd_send_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay so bestie, this is the page for kauditd_send_queue from the Kernel API Manual β€” and it’s literally the helper for kauditd_thread to flush skb queues. πŸ’…βœ¨

🌸 SYNOPSIS 🌸

int kauditd_send_queue (struct sock *sk , u32 portid , struct
       sk_buff_head *queue , unsigned int retry_limit , void (*skb_hook)(struct
       sk_buff *skb) , void (*err_hook)(struct sk_buff *skb, int error) );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sk β€” the sending sock, aka the socket doing the sending 🫢
  • portid β€” the netlink destination, where it’s headed πŸ’Œ
  • queue β€” the skb queue to process, the whole lineup to get through πŸŽ€
  • retry_limit β€” limit on number of netlink unicast failures, like the β€œokay bestie, we tried enough” cap πŸ’€
  • skb_hook β€” per-skb hook for additional processing, a little extra touch per skb ✨
  • err_hook β€” hook called if the skb fails the netlink unicast send, for when it does not slay 😭

πŸ’– DESCRIPTION πŸ’–

Run through the given queue and attempt to send the audit records to auditd β€” it returns 0 on success and negative values on failure. No cap, that’s the contract. πŸ‘‘

Big caveat, bestie: it is up to the caller to ensure that sk is valid for the duration of this function. That part is not optional β€” keep sk alive the whole time this function is running. 🚨

✨ SEE ALSO ✨

Kernel file ./kernel/audit.c, plus the whole squad:


That’s the whole vibe, bestie πŸ’œ β€” source/version: ./kernel, date: October 2026, and the page is kauditd_send_queue(9). Mwah, go read the kernel code πŸ’‹πŸŽ€

πŸ“¦ where this page comes from