__audit_syscall_entry(9)
β¨ __audit_syscall_entry(9) β¨
okay so bestie, we're deep in the Kernel API Manual today and this one is literally the bouncer at the club door of every syscall π buckle up.
πΈ NAME πΈ
__audit_syscall_entry β fill in an audit record at syscall entry π
π¦ SYNOPSIS π¦
void __audit_syscall_entry (int major , unsigned long a1 , unsigned long
a2 , unsigned long a3 , unsigned long a4 );
π ARGUMENTS π
majorβ the major syscall type (function), the main character of the syscall world πa1β additional syscall register 1a2β additional syscall register 2a3β additional syscall register 3a4β additional syscall register 4
four whole registers, she's stacked π«Ά
π DESCRIPTION π
So here's the tea β: this function fills in the audit context at syscall entry. That's it, that's the job. But β and this is the important part, ngl β it only happens if the audit context was created back when the task was created, and the state or filters are actually demanding that the audit context be built. no context, no entry, no record, periodt π
And then there's the state check, okay? If the state β whether it comes from the per-task filter or from the per-syscall filter β is AUDIT_STATE_RECORD, then the record gets written at syscall exit time. yes bestie, exit, not entry, stay with me π
otherwise, it will only be written if another part of the kernel requests that it be written. so like, not automatically. somebody else has to ask. iykyk β¨
π SEE ALSO π
Kernel file ./kernel/auditsc.c β plus the whole friend group, fr fr:
__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_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)audit_seccomp(9)
and that's the whole page, bestie β no cap, we kept every single one of those 28 references π
okay so this absolute icon of a page lives in ./kernel and it's dated October 2026 β slay, era-defining, we love a timestamped queen πβ¨ π¦π
π¦ 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