Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setaudproc(2) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getaudproc(2)

audswitch(2)

audusr(1M)

audevent(1M)

audit(5)

SETAUDPROC(2)

NAME

setaudproc − controls process level auditing for the current process and its decendents

SYNOPSIS

#include <sys/audit.h> int setaudproc (aflag)
int aflag;

DESCRIPTION

Setaudproc controls process level auditing for the current process and its decendents.  It accomplishes this by setting or clearing the u_audproc flag in the u area of the calling process.  When this flag is set, the system audits the process; when it is cleared, the process is not audited.  This call is restricted to superusers. 

One of the following aflags must be used:

AUD_PROC Audit the calling process and its decendents. 

AUD_CLEAR Do not audit the calling process and its decendents. 

The u_audproc flag is inherited by the descendents of a process.  consequently, the effect of a call to setaudproc is not limited to the current process, but will propagate to all its decendents as well.  For example, if setaudproc is called with the AUD_PROC flag, all subsequent audited system calls in the current process and its decendents will be audited until setaudproc is called with the AUD_CLEAR flag. 

Further, setaudproc performs its action regardless of whether the user executing the process has been selected to be audited or not.  For example, if setaudproc is called with the AUD_PROC (or the AUD_CLEAR) flag, all subsequent audited system calls will be audited (or not audited), regardless of whether the user executing the process has been selected for auditing or not. 

Due to these features, setaudproc should not be used in most self-auditing applications.  Audswitch(2) should be used when the objective is to suspend auditing within a process without affecting its decendents or overriding the user selection aspect of the auditing system.

RETURN VALUE

Upon successful completion, a value of 0 is returned; otherwise, −1 is returned. 

AUTHOR

Setaudproc was developed by HP. 

SEE ALSO

getaudproc(2), audswitch(2), audusr(1M), audevent(1M), audit(5). 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026