__audit_sockaddr(9)
π
__audit_sockaddr β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual entry for __audit_sockaddr, and yes we are reading kernel docs together, this is our bonding time π«Ά
β¨ NAME β¨
__audit_sockaddr β record audit data for sys_bind, sys_connect, sys_sendto
like literally it's the little note-taker that writes down the address stuff when those syscalls go down π
π SYNOPSIS π
int __audit_sockaddr (int len , void *a );
that's the whole thing. two args. very demure, very mindful π
πΈ ARGUMENTS πΈ
lenβ data length in user space. yep, user space. that's where the length lives π¦aβ data address in kernel space. and this one's in kernel space. they're in different spaces, it's giving long distance π
π DESCRIPTION π
so what happens? it returns 0 for success, or NULL context, or < 0 on error. that's the vibe check: zero good, everything else not it π
no cap,NULL contextis listed right there alongside the< 0error case β don't come for me, I'm just reading the source π
π₯ SEE ALSO π₯
Kernel file ./kernel/auditsc.c, plus literally the whole friend group:
__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_signal_info_syscall(9)__audit_log_bprm_fcaps(9)__audit_log_capset(9)audit_core_dumps(9)audit_seccomp(9)
and that's the page!! π§β¨ shoutout to the ./kernel source for hosting this icon, dated October 2026, and to __audit_sockaddr(9) itself for being the main character of this whole doc π mwah, bye bestie π
π¦ 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