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

NAME

6       audit_setloginuid - Set a program's loginuid value
7

SYNOPSIS

9       #include <libaudit.h>
10
11       int audit_setloginuid(uid_t uid);
12
13

DESCRIPTION

15       This  function  sets the task attribute loginuid with the value of uid.
16       The loginuid value may only be set by programs with the  CAP_AUDIT_CON‐
17       TROL capability. This normally means the root account.
18
19       The  loginuid  value is part of the task structure and is inheritted by
20       child processes. It is used to track what account a user gained  system
21       access  with.  All  system  entry  point programs should set this value
22       right before changing to the uid of the user  granted  access  so  that
23       audit events are properly attributed to the that user.
24
25

RETURN VALUE

27       This function returns 0 on success and non-zero otherwise.
28
29

SEE ALSO

31       audit_getloginuid(3), pam_loginuid(8).
32
33

AUTHOR

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