AUDIT_ADD_WATCH(3)

πŸ“¦
version 4.2.1 Β· 2 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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 -1 if an error occurs 😭
  • otherwise, 0 for 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. πŸ’…πŸŒΈ