Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1223 KB)
auditsvc(2)NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | USAGE | ATTRIBUTES | SEE ALSO | NOTES NAME
SYNOPSIS
cc [ flag ... ] file... -lbsm -lsocket -lnsl -lintl [ library ... ] #include <sys/param.h> #include <bsm/audit.h>int auditsvc(int fd, int limit); DESCRIPTION
The auditsvc() function specifies the audit log file to the kernel. The kernel writes audit records to this file until an exceptional condition occurs and then the call returns. The fd argument is a file descriptor that identifies the audit file. Applications should open this file for writing before calling auditsvc(). The limit argument specifies the number of free blocks that must be available in the audit file system, and causes auditsvc() to return when the free disk space on the audit filesystem drops below this limit. Thus, the invoking program can take action to avoid running out of disk space. The auditsvc() function does not return until one of the following conditions occurs: RETURN VALUESThe auditsvc() function returns only on an error. ERRORS
The auditsvc() function will fail if: USAGEOnly processes with an effective user ID of superuser can execute this call successfully. ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSONOTESThe functionality described in this man page is available only if the Basic Security Module (BSM) has been enabled. See bsmconv(1M) for more information. NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS | USAGE | ATTRIBUTES | SEE ALSO | NOTES |
||||||