AUDIT_DETECT_MACHINE(3)
π AUDIT_DETECT_MACHINE(3) π
okay bestie, welcome to the Linux Audit API corner of the man pages β¨ this one's a lil baby function but she's important, trust π«Ά
πΈ NAME πΈ
audit_detect_machine β the girl who figures out what machine you're on π
β¨ SYNOPSIS β¨
#include <libaudit.h>
int audit_detect_machine(void);
like literally that's it, no args, no drama, she just knows π§
π¦ DESCRIPTION π¦
so audit_detect_machine goes and queries uname, then takes that kernel machine string and converts it into an enum value that's defined in machine_t π
and why do we care?? because the machine type is needed for any use of the audit_name_to_syscall function. like, you cannot use that one without knowing this one first. they're a package deal, iykyk π
π RETURN VALUE π
- if something goes wrong β she returns
-1π - otherwise β the return value is the machine's type π
no in-between, no maybes, periodt.
π SEE ALSO π
π AUTHOR π
Steve Grubb β the icon who wrote this π
Red Hat Β· Oct 2006 β yeah bestie this page is old enough to have its own vibe, and it still ate π β¨ bye luv u π«Ά
π¦ 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