Debian Codegraph @

upstream/debian-unstable/man3/audit_open.3

raw
1 .TH "AUDIT_OPEN" "3" "Oct 2006" "Red Hat" "Linux Audit API"
2 .SH NAME
3 audit_open \- Open a audit netlink socket connection
4 .SH "SYNOPSIS"
5 .nf
6 .B #include <libaudit.h>
7 .PP
8 .BI "int audit_open(void);"
9 .fi
10
11 .SH "DESCRIPTION"
12
13 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.
14
15 .SH "RETURN VALUE"
16
17 Returns \-1 if an error occurs; otherwise, the return value is a descriptor referencing the socket.
18
19 .SH ERRORS
20
21 The
22 .BR audit_open ()
23 function may fail and set
24 .I errno
25 for any of the errors specified for the
26 .BR socket (2)
27 and
28 .BR fcntl (2)
29 routines.
30
31 .SH "SEE ALSO"
32
33 .BR netlink (7).
34
35 .SH AUTHOR
36 Steve Grubb