audit_seccomp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to audit_seccomp(9), straight out of the Kernel API Manual ✨ this one's short and sweet and honestly kind of iconic β€” it's the little function that makes sure your seccomp drama gets recorded, no cap πŸ’–


✨ NAME ✨

audit_seccomp β€” record information about a seccomp action πŸ¦‹

like, the whole vibe is "write down what seccomp just did" and honestly? slay.


🌸 SYNOPSIS 🌸

void audit_seccomp (unsigned long syscall , long signr , int code );

look at her. three args. no return value. main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • syscall β€” the syscall number πŸ’« like, which syscall are we even talking about bestie
  • signr β€” the signal value 🫢 the signal number, that's it, that's the whole vibe
  • code β€” the seccomp action 🌈 the actual action being reported

πŸ’œ DESCRIPTION πŸ’œ

Record the information associated with a seccomp action. periodt. that's the job πŸ’…

okay so here's the tea β€” event filtering for seccomp actions that are not meant to be logged? that's handled over in seccomp_log, not here. so this function is out here forcing auditing to happen independent of the audit_enabled state and the dummy context state 😀 because seccomp actions should be logged even when audit is not in use. like, the whole point. no notes. πŸ”₯

⚠️ real talk: it forces auditing β€” it doesn't politely ask. that's the design, bestie, it's giving "I don't need permission" πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

so bestie, if you want the whole audit-verse, it's literally all hanging out in the kernel file ./kernel/auditsc.c 🧚 go read these:

that's a whole friend group right there, iykyk πŸ˜­πŸ’–


okay that's the page!! tysm for reading bestie 🫢 this little drop came to you from ./kernel, dated October 2026, and it's filed under audit_seccomp(9) β€” mwah, go log something πŸ’‹β­

πŸ“¦ where this page comes from