AUPARSE_FIND_FIELD(3)
β¨ AUPARSE_FIND_FIELD(3) β¨
okay bestie so this one lives in the Linux Audit API section of the manual (section 3, the library-calls girlies π ), and it's literally the search bar of your audit event. let's get into it π«Ά
πΈ NAME πΈ
auparse_find_field β search for field name
π SYNOPSIS π
#include <auparse.h>
const char * auparse_find_field(auparse_state_t *au,constchar*"name);"
(no i did not typo that, that's literally what the synopsis says, i am but a humble messenger π)
π DESCRIPTION π
so auparse_find_field goes on a lil scavenger hunt π β it scans all the records in an event to find the first occurrence of the field name you hand it.
the search starts from wherever the cursor is currently sitting, so it's not a "start from the top every time" situation, it's a "from here, onward" situation. main character energy honestly.
and the field name you pass in? it gets stored for subsequent searching. so it remembers what you were looking for. it's thoughtful like that π
NOTE:auparsecreates 2 pseudo fields that do not exist in the natural record for SELinuxAVCandUSER_AVCdecision and permissions. their names areseresultandsepermsrespectively. so if you're like "where did this field come from??" β it's a pseudo field, it's fine, breathe π§
π RETURN VALUE π
- returns
NULLif the field was not found π - if an error occurs,
errnowill be set - otherwise? it returns a pointer to the text value associated with the field. slay β¨
π SEE ALSO π
go read those too, they're the rest of the friend group π¦
π AUTHOR π
Steve Grubb π
and that's the whole vibe check π this page is brought to you by Red Hat, dated June 2021. stan the audit API, 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: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-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