File: audit_open.3

package info (click to toggle)
audit 1:2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 5,308 kB
  • ctags: 5,589
  • sloc: ansic: 47,383; sh: 11,886; python: 1,949; makefile: 824
file content (34 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.TH "AUDIT_OPEN" "3" "Oct 2006" "Red Hat" "Linux Audit API"
.SH NAME
audit_open \- Open a audit netlink socket connection
.SH "SYNOPSIS"
.B #include <libaudit.h>
.sp
int audit_open (void);

.SH "DESCRIPTION"

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.

.SH "RETURN VALUE"

Returns \-1 if an error occurs; otherwise, the return value is a descriptor referencing the socket.

.SH ERRORS

The
.BR audit_open ()
function may fail and set
.I errno
for any of the errors specified for the
.BR socket (2)
and
.BR fcntl (2)
routines.

.SH "SEE ALSO"

.BR netlink (7).

.SH AUTHOR
Steve Grubb