1AUDIT_ADD_WATCH(3) Linux Audit API AUDIT_ADD_WATCH(3)
2
3
4
6 audit_add_watch - create a rule layout for a watch
7
9 #include <libaudit.h>
10
11 int audit_add_watch(struct audit_rule_data **rulep, const char *path);
12
13
15 audit_add_watch will create a watch rule in the pointer to a pointer
16 rulep. All that you need to pass it is the full path to a file and it
17 will initialize the audit_rule_data structure for a watch.
18
19
21 Returns -1 if an error occurs; otherwise, 0 for success.
22
23
25 audit_add_rule_data(3), audit_delete_rule_data(3).
26
27
29 Steve Grubb
30
31
32
33Red Hat Feb 2007 AUDIT_ADD_WATCH(3)