Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > G

getaudid(2)

TO BE OBSOLETED
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

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

SYNOPSIS

#include <sys/audit.h>

int getaudid(void);

Remarks

This function is provided purely for backward compatibility. HP recommends that new applications use getauduser() instead. See getauduser(3).

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.