AUSEARCH_CUR_EVENT(3)
β¨ AUSEARCH_CUR_EVENT β¨
okay bestie, welcome to the Linux Audit API π this one's a lil function called ausearch_cur_event, and fr fr it's the vibe check your search criteria deserve. it lives in <auparse.h> obviously, and it's here to answer one very important question: does this event match or not? π
πΈ SYNOPSIS πΈ
#include <auparse.h>
int ausearch_cur_event(auparse_state_t *au);"
that's it, that's the whole thing, she's simple and she serves π
π¦ DESCRIPTION π¦
so here's the tea, bestie β
ausearch_cur_event goes and scans the input source and evaluates whether any record in the current event contains the data you're searching for. lowkey iconic of her.
and here's the important part β the evaluation happens at the record level. like, per record, not per event, not per whatever, per record. okurrr? π«Ά
then there's the cursor behavior, and this is the bit you gotta remember:
- if a match is found, the cursor gets repositioned β¨
- if no match is found, the cursor stays put on the last successfully parsed record within the current event π
so it's giving "no match? we're not moving, we're staying exactly where we were." main character energy honestly.
π RETURN VALUE π
she returns one of three lil numbers, and each one means something:
-1β an error happened π something went wrong0β no matches, bestie, we came up empty π1β success!! we found something, slay π
π SEE ALSO π
go read these too, they're all part of the same friend group:
π AUTHOR π
Attila Lakatos wrote this one. we love and respect π«Ά
and that's the whole page, bestie! πΈ this lil cutie comes to you from Red Hat, dated Feb 2024, and it's part of the Linux Audit API β filed under AUSEARCH_CUR_EVENT(3). go forth and search those events, you absolute icon π
β¨π¦
π¦ 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