/
githubmirror
/
audit-userspace
Обзор
Документация
Войти
/
githubmirror
/
audit-userspace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/audit_get_session.3
27 строк
777 B
Steve Grubb
Align man pages to glibc style
30 июн 2025, 03:29
30 июн 2025, 03:29
b13faa3
Код
Авторство
О чём код?
.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 .nf .B #include <libaudit.h> .PP .BI "uint32_t audit_get_session(void);" .fi .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