Blame docs/audit_setloginuid.3

Packit f0d170
.TH "AUDIT_SETLOGINUID" "3" "Oct 2006" "Red Hat" "Linux Audit API"
Packit f0d170
.SH NAME
Packit f0d170
audit_setloginuid \- Set a program's loginuid value
Packit f0d170
.SH SYNOPSIS
Packit f0d170
.B #include <libaudit.h>
Packit f0d170
.sp
Packit f0d170
int audit_setloginuid(uid_t uid);
Packit f0d170
Packit f0d170
.SH "DESCRIPTION"
Packit f0d170
Packit f0d170
This function sets the task attribute loginuid with the value of uid. The loginuid value may only be set by programs with the CAP_AUDIT_CONTROL capability. This normally means the root account.
Packit f0d170
.sp
Packit f0d170
The loginuid value is part of the task structure and is inheritted by child processes. It is used to track what account a user gained system access with. All system entry point programs should set this value right before changing to the uid of the user granted access so that audit events are properly attributed to the that user.
Packit f0d170
Packit f0d170
.SH "RETURN VALUE"
Packit f0d170
Packit f0d170
This function returns 0 on success and non-zero otherwise.
Packit f0d170
Packit f0d170
.SH "SEE ALSO"
Packit f0d170
Packit f0d170
.BR audit_getloginuid (3),
Packit f0d170
.BR pam_loginuid (8).
Packit f0d170
Packit f0d170
.SH AUTHOR
Packit f0d170
Steve Grubb