audit_getloginuid(3) centos man page | unix.com

Man Page: audit_getloginuid

Operating Environment: centos

Section: 3

AUDIT_GETLOGINUID(3)						  Linux Audit API					      AUDIT_GETLOGINUID(3)

NAME
audit_getloginuid - Get a program's loginuid value
SYNOPSIS
#include <libaudit.h> uid_t audit_getloginuid(void);
DESCRIPTION
This function returns the task attribute loginuid.
RETURN VALUE
This function returns the loginuid value if it was set. It will return a -1 if loginuid was unset. However, since uid_t is an unsigned type, you will see the converted value instead of -1.
ERRORS
This function returns -1 on failure. However, in the event of a real error, errno would be set. The function can set errno based on fail- ures of open, read, or strtoul.
SEE ALSO
audit_setloginuid(3).
AUTHOR
Steve Grubb Red Hat Oct 2006 AUDIT_GETLOGINUID(3)
Related Man Pages
pam_loginuid(8) - linux
pam_loginuid(8) - debian
audit_log_user_avc_message(3) - centos
audit_log_user_avc_message(3) - suse
pam_loginuid(8) - xfree86
Similar Topics in the Unix Linux Community
Weird 'find' results
Shopt -s histappend
CentOS 6 ran out of space, need to reclaim it
Controlling user input
[TIP] Processing YAML files with yq