Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ satvwrite(2) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sat_echo(1m)

satoff(2)

saton(2)

satread(2)

satstate(2)

printf(3S)



satwrite(2)                                                        satwrite(2)



NAME
     satwrite, satvwrite - write a block of audit record data

C SYNOPSIS
     #include <sys/sat.h>

int satwrite (int event, int outcome, char *buffer, unsigned nbytes)
#include <stdarg.h> #include <sat.h>
int satvwrite (int event, int outcome, char *format, ...)
DESCRIPTION
satwrite writes nbytes bytes to the security audit trail record queue
from the buffer pointed to by buffer.
satvwrite is a more convenient libc interface for generating audit
records, which are generally text strings. Format is a printf-like
format string, followed by a variable number of arguments. See
printf(3S) for more information on the possible formatting characters.
Event must be equal to one of the SAT record type constants for
administrative events, as defined in /usr/include/sys/sat.h. Permissible
values are:
SATAEAUDIT satwrite is called by audit subsystem utilities.
SATAEIDENTITY satwrite is called by programs in the identification
and authentication subsystem.
SATAEDBEDIT satwrite is called by the program which edits
administrative databases.
SATAEMOUNT satwrite is called by the programs which mount
filesystems.
SATAECUSTOM satwrite is called by customer written self auditing
applications.
outcome should be equal to SATSUCCESS or SATFAILURE, as defined in
/usr/include/sys/sat.h. satwrite interprets any value other than
SATFAILURE as an alternate representation of SATSUCCESS.
Buffer should contain audit data in human readable form. Although there
are no restrictions on its content, sat_interpret(1m) always interprets
the data as a null-terminated string.
ERRORS
satwrite fails if these conditions are true:
[ENOPKG] Audit is not configured on this system.
Page 1


satwrite(2)                                                        satwrite(2)



     [EPERM]        The caller does not have CAPAUDITWRITE capability.

     [EINVAL]       buffer is null, or nbytes is greater than
                    SATMAXUSERREC.

     [EDOM]         event is not one of the permitted values.

     [EFAULT]       data can't be copied from buffer into the kernel.

RETURN VALUE
     A return value of -1 indicates an error and errno is set to indicate the
     error.  Otherwise 0 is returned.

SEE ALSO
     sat_echo(1m), satoff(2), saton(2), satread(2), satstate(2), printf(3S)








































                                                                        Page 2



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