1AUDIT_OPEN(3)                   Linux Audit API                  AUDIT_OPEN(3)
2
3
4

NAME

6       audit_open - Open a audit netlink socket connection
7

SYNOPSIS

9       #include <libaudit.h>
10
11       int audit_open(void);
12
13

DESCRIPTION

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

RETURN VALUE

22       Returns -1 if an error occurs; otherwise, the return  value  is  a  de‐
23       scriptor referencing the socket.
24
25

ERRORS

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

SEE ALSO

32       netlink(7).
33
34

AUTHOR

36       Steve Grubb
37
38
39
40Red Hat                            Oct 2006                      AUDIT_OPEN(3)
Impressum