AUDIT_OPEN(3)
π AUDIT_OPEN(3) π
ok so bestie, we're in the Linux Audit API section of the manual and today's main character is audit_open. it's giving "tiny function, big responsibility" ngl π«Ά
β¨ NAME β¨
audit_open β open an audit netlink socket connection πΈ
β¨ SYNOPSIS β¨
#include <libaudit.h>
int audit_open(void);
like, that's it. no args. no drama. just vibes π
β¨ DESCRIPTION β¨
so what this icon does is create a NETLINK_AUDIT socket, and that socket is your little phone line to the kernel part of the Linux Audit Subsystem πβ¨ it's literally how you talk to it.
and here's the tea: the audit system uses the ACK feature of netlink. which means every single message you send to the kernel comes back with a netlink status packet β even when the operation succeeds π so don't be out here waiting for a reply only when things go wrong, bestie, you're getting one either way. periodt.
β¨ RETURN VALUE β¨
- returns
-1if an error occurs π - otherwise the return value is a descriptor referencing the socket β that's your new bestie, hold onto it π«Ά
β¨ ERRORS β¨
the audit_open() function may fail and set errno for any of the errors specified for the socket(2) and fcntl(2) routines π₯
so if it acts up, go read those two man pages, that's where the receipts are, iykyk π
β¨ SEE ALSO β¨
β¨ AUTHOR β¨
Steve Grubb π
and that's the whole page, bestie, you ate it up π
β¨ this was brought to you by Red Hat, dated Oct 2006, and it lives in the AUDIT_OPEN(3) section forever and ever ππ¦ ngl a 2006 legend still carrying the audit subsystem on its back. obsessed. ππ
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libaudit-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libaudit-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libaudit-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms