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

NAME

6       audit_getloginuid - Get a program's loginuid value
7

SYNOPSIS

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

DESCRIPTION

15       This function returns the task attribute loginuid.
16
17

RETURN VALUE

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

ERRORS

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

SEE ALSO

31       audit_setloginuid(3).
32
33

AUTHOR

35       Steve Grubb
36
37
38
39Red Hat                            Oct 2006               AUDIT_GETLOGINUID(3)
Impressum