audit_seccomp(9)
π 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 bestiesignrβ the signal value π«Ά the signal number, that's it, that's the whole vibecodeβ 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:
__audit_filter_op(9)audit_filter_uring(9)audit_reset_context(9)audit_alloc(9)audit_log_uring(9)__audit_free(9)audit_return_fixup(9)__audit_uring_entry(9)__audit_uring_exit(9)__audit_syscall_entry(9)__audit_syscall_exit(9)__audit_getname(9)__audit_inode(9)__audit_inode_child(9)auditsc_get_stamp(9)__audit_mq_open(9)__audit_mq_sendrecv(9)__audit_mq_notify(9)__audit_mq_getsetattr(9)__audit_ipc_obj(9)__audit_ipc_set_perm(9)__audit_socketcall(9)__audit_fd_pair(9)__audit_sockaddr(9)audit_signal_info_syscall(9)__audit_log_bprm_fcaps(9)__audit_log_capset(9)audit_core_dumps(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms