AUDIT_ADD_WATCH(3)
π AUDIT_ADD_WATCH(3) π
okay bestie, welcome to the Linux Audit API section 3 page for audit_add_watch β yes that's the manual name, we're keeping it, it's iconic.
β¨ NAME β¨
audit_add_watch β create a rule layout for a watch π
π¦ SYNOPSIS π¦
#include <libaudit.h>
int audit_add_watch(struct audit_rule_data **rulep, const char *path);"
πΈ DESCRIPTION πΈ
so audit_add_watch will create a watch rule inside the pointer to a pointer, rulep. literally all you have to hand it is the full path to a file, and it'll go ahead and initialize the audit_rule_data structure for a watch. that's it. that's the whole vibe. no cap. π
π RETURN VALUE π
- Returns
-1if an error occurs π - otherwise,
0for success β¨
π₯ SEE ALSO π₯
π AUTHOR π
Steve Grubb
and that's a wrap, bestie π«Ά this one came from Red Hat back in Feb 2007 β yes she's an elder icon and she still ate. 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: 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