Debian Codegraph @

upstream/debian-unstable/man3/audit_add_watch.3

raw
1 .TH "AUDIT_ADD_WATCH" "3" "Feb 2007" "Red Hat" "Linux Audit API"
2 .SH NAME
3 audit_add_watch \- create a rule layout for a watch
4 .SH "SYNOPSIS"
5 .nf
6 .B #include <libaudit.h>
7 .PP
8 .BI "int audit_add_watch(struct audit_rule_data **" rulep ", const char *" path );"
9 .fi
10
11 .SH "DESCRIPTION"
12
13 audit_add_watch will create a watch rule in the pointer to a pointer \fIrulep\fP. All that you need to pass it is the full \fIpath\fP to a file and it will initialize the audit_rule_data structure for a watch.
14
15 .SH "RETURN VALUE"
16
17 Returns \-1 if an error occurs; otherwise, 0 for success.
18
19 .SH "SEE ALSO"
20
21 .BR audit_add_rule_data (3),
22 .BR audit_delete_rule_data (3).
23
24 .SH AUTHOR
25 Steve Grubb