audit_getloginuid(3)

audit_getloginuid3

Get a program's loginuid value

Usage

#include <libaudit.h>

uid_t audit_getloginuid(void);

Overview

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 failures of open, read, or strtoul.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 2 times.

  1. 5.0–6.0
  2. 7–13
  3. Arch

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.