1AUDIT_OPEN(3) Linux Audit API AUDIT_OPEN(3)
2
3
4
6 audit_open - Open a audit netlink socket connection
7
9 #include <libaudit.h>
10
11 int audit_open (void);
12
13
15 audit_open creates a NETLINK_AUDIT socket for communication with the
16 kernel part of the Linux Audit Subsystem. The audit system uses the ACK
17 feature of netlink. This means that every message to the kernel will
18 return a netlink status packet even if the operation succeeds.
19
20
22 Returns -1 if an error occurs; otherwise, the return value is a
23 descriptor referencing the socket.
24
25
27 The audit_open() function may fail and set errno for any of the errors
28 specified for the socket(2) and fcntl(2) routines.
29
30
32 netlink(7).
33
34
36 Steve Grubb
37
38
39
40Red Hat Oct 2006 AUDIT_OPEN(3)