1 .TH "AUDIT_OPEN" "3" "Oct 2006" "Red Hat" "Linux Audit API"
3 audit_open \- Open a audit netlink socket connection
5 .B #include <libaudit.h>
11 audit_open creates a NETLINK_AUDIT socket for communication with the kernel part of the Linux Audit Subsystem. The audit system uses the ACK feature of netlink. This means that every message to the kernel will return a netlink status packet even if the operation succeeds.
15 Returns \-1 if an error occurs; otherwise, the return value is a descriptor referencing the socket.
21 function may fail and set
23 for any of the errors specified for the