AUDIT_REQUES...LES_LIST_DATA(3)

πŸ“¦
version 4.2.1 Β· 2 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ 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. πŸ’…βœ¨