AUDIT_RESET_LOST(3)
π AUDIT_RESET_LOST β Linux Audit API π
okay bestie, we're doing audit_reset_lost from the Linux Audit API today and honestly? she's a little legend. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
audit_reset_lost β reset lost event counter
like, she resets the lost event counter. that's the whole job. iconic behavior, no notes. π
πΈ SYNOPSIS πΈ
#include <libaudit.h>
int audit_reset_lost(int fd);
literally just one function and one include. we love a low-maintenance queen. π
π¦ DESCRIPTION π¦
okay so here's the tea, bestie. audit_reset_lost() resets the kernel's lost event counter, and it does it using the descriptor fd.
and fd? that has to be an open audit netlink socket. not just any random fd you found lying around, no ma'am. it's giving "must be the right socket or this whole vibe is off." π
also β and this is the important part β this call requires that the kernel support AUDIT_FEATURE_BITMAP_LOST_RESET. if the kernel doesn't have that feature? it's simply not happening, and that's the vibe check you gotta pass first. β
π₯ RETURN VALUE π₯
so the return value is <= 0 on error. yes, less than or equal to zero, that's not a typo, that's the actual rule, don't come for me. π
otherwise β meaning when it's not erroring out on you β it's the netlink sequence id number. cute little number, that's your reward for a job well done. π
π SEE ALSO π
go read those too, they're all part of the same friend group, iykyk. π
π AUTHOR π
Steve Grubb β periodt. thank you for your service, king. π«Ά
and that's the whole page, bestie! every single detail is still here, the facts did not move, only the vibe got upgraded. β¨
πΈ Red Hat Β· July 2025 πΈ
mwah, take care of your netlink sockets and stay slay π
π¦ 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