File: audit_get_session.3

package info (click to toggle)
audit 1%3A3.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,916 kB
  • sloc: ansic: 57,158; sh: 5,100; python: 2,938; makefile: 1,494; sed: 32
file content (25 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (4)
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
.TH "AUDIT_GET_SESSION" "3" "Dec 2016" "Red Hat" "Linux Audit API"
.SH NAME
audit_get_session \- Get a program's login session id value
.SH SYNOPSIS
.B #include <libaudit.h>
.sp
uin32_t audit_get_session(void);

.SH DESCRIPTION
This function returns the task's session id attribute.

.SH "RETURN VALUE"

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

.SH "ERRORS"

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

.SH "SEE ALSO"

.BR audit_getloginuid (3).

.SH AUTHOR
Steve Grubb