AUDIT_REQUES...LES_LIST_DATA(3)
β¨ AUDIT_REQUES...LES_LIST_DATA(3) β¨
okay bestie, welcome to the Linux Audit API corner of the manual, section 3 (that's library functions, iykyk) π this one's short and sweet and honestly iconic for it.
π NAME π
audit_request_rules_list_data β ask for the list of current audit rules, pls and thank u π«Ά
πΈ SYNOPSIS πΈ
#include <libaudit.h>
int audit_request_rules_list_data(intfd);"
(yeah the stray " at the end is literally just there, we don't ask questions, we copy exactly π
)
π¦ DESCRIPTION π¦
so audit_request_rules_list_data sends a request to the kernel asking it to list the current audit rules. that's the whole job. main character behaviour, no notes.
and then β after you've issued this request β the rules come back one after another. not all at once. one. after. another. so be ready to catch them, bestie π
π₯ RETURN VALUE π₯
the return value is <= 0 on error. otherwise? it's the netlink sequence id number. slay β¨
also heads up: this function can have any error that sendto would encounter. literally any of them. so don't come for it when it throws something weird, that's just the vibe.
β SEE ALSO β
π AUTHOR π
Steve Grubb π«‘
sign-off time π this lil page came from Red Hat, dated Oct 2006 β an absolute vintage baddie β and it lives at AUDIT_REQUES...LES_LIST_DATA(3). periodt. π
β¨
π¦ 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