AUDIT_REQUEST_FEATURES(3)
π AUDIT_REQUEST_FEATURES π
okay bestie, so this is audit_request_features from the Linux Audit API β it lives in section 3 of the manual, which is the "library functions" section, iykyk. She's a libaudit girlie and she has one job and she does it flawlessly. β¨
πΈ NAME πΈ
audit_request_features β request audit feature bitmap π
Like, literally just ask the kernel "hey queen, what audit features do you support?" and get a bitmap back. That's the whole vibe.
π¦ SYNOPSIS π¦
#include <libaudit.h>
int audit_request_features(int fd);
Two lines, no drama, no notes. π
π DESCRIPTION π
So here's the tea, bestie π: audit_request_features() requests that the kernel send a structure describing supported audit features on fd.
And fd β listen β must be an open audit netlink socket. Not just any random file descriptor, not your cousin's socket, an audit netlink socket. No cap. If it isn't, that's on you. π
β RETURN VALUE β
- The return value is
<= 0on error β so zero or negative means something went wrong, periodt. π - Otherwise, it's the netlink sequence id number. Iconic. β¨
- And heads up: this function can have any error that
sendto(2)would encounter. So ifsendto(2)can throw it, this baby can catch it too. Main character energy, honestly.
π SEE ALSO π
Go read those next, bestie, they're all in the same friend group. π«Ά
π AUTHOR π
Steve Grubb β the legend, the blueprint, the moment. π
Red Hat, July 2025 β that's where this page comes from and when she was last updated. Slay, and good luck with your feature bitmap, bestie πππ¦β¨
π¦ 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