AUDIT_IS_ENABLED(3)
β¨ AUDIT_IS_ENABLED π
okay bestie, welcome to the Linux Audit API corner of the manual β this one's called audit_is_enabled, and fr fr the name is doing 90% of the work here. it tells you whether auditing is turned on. that's it. that's the whole vibe. π¦
πΈ NAME πΈ
audit_is_enabled β judge whether auditing is enabled or not π
π SYNOPSIS π
#include <libaudit.h>
int audit_is_enabled(int fd);
π DESCRIPTION π
so audit_is_enabled() does exactly what it says on the tin, no cap: it judges whether auditing is enabled or not. that's the function. that's the assignment. she ate and left no crumbs. β¨
the one thing you gotta know: fd has to be a file descriptor that came back from audit_open(3). like, you can't just roll up with any random fd and expect her to read your mind. use the one from audit_open(3), periodt. π
β RETURN VALUE β
here's the tea, and it's a three-way split so pay attention bestie:
- returns
0if auditing is NOT enabled π - returns
1if it IS enabled π - returns
-1on error π
π SEE ALSO π
audit_set_enabled(3)β the other half of this duo, go check her out too π«Ά
π AUTHOR π
Steve Grubb β the icon, the moment, the legend. bow down. π
and that's the whole page, bestie! this lil masterpiece is brought to you by Red Hat, dated May 2021 β old but iconic, like a fine wine or a really good playlist. mwah. π πβ¨
π¦ where this page comes from
- alpine 3.22: audit-doc 4.0.3-r0 Β· LGPL-2.1-or-later
- 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
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- centos-stream 9: audit-libs-devel 3.1.5-9.el9 Β· LGPLv2+
- debian bookworm: libaudit-dev 1:3.0.9-1 Β· GPL-2.0-only
- debian trixie: libaudit-dev 1:4.0.2-2+deb13u1 Β· GPL-2.0-only
- 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
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: audit-devel 4.0-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu jammy: libaudit-dev 1:3.0.7-1build1 Β· GPL-2.0-only
- ubuntu jammy: libaudit-dev 1:3.0.7-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu noble: libaudit-dev 1:3.1.2-2.1build1 Β· GPL-2.0-only
- ubuntu noble: libaudit-dev 1:3.1.2-2.1ubuntu0.1 Β· GPL-2.0-only
- ubuntu questing: libaudit-dev 1:4.0.5-1build1
- 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