HPlogo HP-UX Reference > G

getaudid(2)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

NAME

getaudid() — get the audit ID (aid) for the current process

SYNOPSIS

#include <sys/audit.h>

int getaudid(void);

DESCRIPTION

getaudid() returns the audit ID (aid) for the current process. This call is restricted to users with the SELFAUDIT privilege.

Security Restrictions

Some or all of the actions associated with this system call require the SELFAUDIT privilege. Processes owned by the superuser have this privilege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges.

RETURN VALUE

Upon successful completion, the audit ID is returned; otherwise, a -1 is returned.

ERRORS

getaudid() fails if the following is true:

EPERM

The caller does not have the SELFAUDIT privilege.

AUTHOR

getaudid() was developed by HP.