1AUDIT_SETLOGINUID(3) Linux Audit API AUDIT_SETLOGINUID(3)
2
3
4
6 audit_setloginuid - Set a program's loginuid value
7
9 #include <libaudit.h>
10
11 int audit_setloginuid(uid_t uid);
12
13
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 inherited 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 au‐
23 dit events are properly attributed to the that user.
24
25
27 This function returns 0 on success and non-zero otherwise.
28
29
31 audit_getloginuid(3), pam_loginuid(8).
32
33
35 Steve Grubb
36
37
38
39Red Hat Oct 2006 AUDIT_SETLOGINUID(3)