AUDIT_SET_RATE_LIMIT(3)
β¨ AUDIT_SET_RATE_LIMIT π
okay bestie, welcome to the Linux Audit API corner of the manual, where we learn how to make the kernel chill out a lil π
π NAME π
audit_set_rate_limit β set the audit rate limit π¦
πΈ SYNOPSIS πΈ
#include <libaudit.h>
int audit_set_rate_limit(int fd, uint32_t limit);"
(yes the signature is literally that, we don't question the vibe π)
π¦ DESCRIPTION π¦
so, audit_set_rate_limit will set the maximum number of messages that the kernel will send per second. literally the speed limit but for audit messages, no cap ππ¨
why would you want that? because it can be used to throttle the rate if systems become unresponsive β like when your box is absolutely drowning in events and being dramatic about it π
but bestie, be real with me: of course the trade off is that events will be dropped. you're capping the flow, so some of the messages justβ¦ don't make it. periodt π
the limit argument controls how many messages may be sent each second.
and the default value is 0, meaning no limit β the kernel goes full main character, unbothered, unlimited β¨
π₯ RETURN VALUE π₯
the return value is <= 0 on error, otherwise it is the netlink sequence id number π
also fyi: this function can have any error that sendto would encounter. so whatever chaos sendto is capable of, this one inherits it fr fr.
π SEE ALSO π
π AUTHOR π
Steve Grubb π
Red Hat Β· Oct 2006 Β· and that's the whole Linux Audit API moment bestie π«Ά slay responsibly, mwah ππ
π¦ 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