Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

audit(2)

audit_args(3)

audit_control(5)

audit.log(5)

SETUSERAUDIT(2)  —  SYSTEM CALLS

NAME

setuseraudit, setaudit − set the audit classes for a specified user ID

SYNOPSIS

#include <sys/label.h>
#include <sys/audit.h>

setuseraudit(uid, state)
int uid;
audit_state_t ∗state;

setaudit(state)
audit_state_t ∗state;

DESCRIPTION

The setuseraudit() system call sets the audit state for all processes whose audit user ID matches the specified user ID.  The parameter state specifies the audit classes to audit for both successful and unsuccessful operations. 

The setaudit system call sets the audit state for the current process. 

Only processes with the real or effective user ID of the super-user may successfully execute these calls. 

RETURN VALUE

If the call succeeds, a value of 0 is returned.  If an error occurs, the value −1 is returned. 

ERRORS

EPERM The process’ real or effective user ID is not super-user. 

EFAULT The state parameter points outside the processes’ allocated address space. 

SEE ALSO

audit(2), audit_args(3), audit_control(5), audit.log(5)

Sun Release 4.0  —  Last change: 25 September 1987

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