Manual page for audit(2)
audit - write a record to the audit log
[ flag ... ] file ...
-lbsm -lsocket -lnsl -lintl
[ library ... ]
int audit( caddr_t record,
The functionality described in this man page is available only
if the Basic Security Module (BSM) has been enabled. See
for more information.
system call is used to write a record to the
system audit log. The data pointed to by
is written to the log after a minimal
consistency check, with the
parameter specifying the size of the record
in bytes. The data should be a well-formed audit
record as described by
The kernel validates the record header token type and length,
and sets the time stamp value before writing the record to the
audit log. The kernel does not do any preselection for
user-level generated events. If the audit policy is set to
include sequence or trailer tokens, the kernel will append
them to the record.
Only the super-user may successfully execute this call.
Upon successful completion, a value of 0 is returned.
Otherwise, a value of -1 is returned and
is set to indicate the error.
fails if one or more of the following are true:
points outside the process's allocated address space.
The record header token ID is invalid or the length is
either less than the header token size or greater than
The process's effective user ID is not super-user.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97