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

NAME

6       audit_get_session - Get a program's login session id value
7

SYNOPSIS

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

DESCRIPTION

15       This function returns the task's session id attribute.
16
17

RETURN VALUE

19       This  function  returns  the  session  id  value if it was set. It will
20       return a -1 if the session id is unset. However, since uint32_t  is  an
21       unsigned type, you will see the converted value instead of -1.
22
23

ERRORS

25       This  function  returns  -2 on failure. Additionally, in the event of a
26       real error, errno would be set. The function can  set  errno  based  on
27       failures of open, read, or strtoul.
28
29

SEE ALSO

31       audit_getloginuid(3).
32
33

AUTHOR

35       Steve Grubb
36
37
38
39Red Hat                            Dec 2016               AUDIT_GET_SESSION(3)
Impressum