IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 2 > audit man page

audit man page

Section 2 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





System Calls                                             audit(2)



NAME
     audit - write a record to the audit log

SYNOPSIS
     cc [ flag ... ] file ... -lbsm -lsocket -lnsl  [ library... ]
     #include <sys/param.h>
     #include <bsm/libbsm.h>

     int audit(caddr_t record, int length);

DESCRIPTION
     The  audit() function is used to write a record to the  sys-
     tem  audit log. The data pointed to by  record is written to
     the log after a minimal  consistency check, with the  length
     parameter  specifying the size of the record  in bytes.  The
     data should be a well-formed audit  record as  described  by
     audit.log(4).

     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.

RETURN VALUES
     Upon successful completion, 0 is returned.  Otherwise, -1 is
     returned and errno is set to indicate the error.

ERRORS
     The audit() function will fail if:

     EFAULT          The  record  argument  points  outside   the
                     process's allocated address space.



     EINVAL          The record header token ID is invalid or the
                     length is  either less than the header token
                     size or greater than MAXAUDITDATA.



     EPERM           The  {PRIV_PROC_AUDIT}  privilege   is   not
                     asserted in the effective set of the calling
                     process.



USAGE




SunOS 5.10          Last change: 31 Mar 2005                    1






System Calls                                             audit(2)



     Only privileged  processes  can  successfully  execute  this
     call.

ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Interface Stability         | Stable                      |
    |_____________________________|_____________________________|
    | MT-Level                    | MT-Safe                     |
    |_____________________________|_____________________________|


SEE ALSO
     bsmconv(1M),  auditd(1M),  auditon(2),  auditsvc(2),  getau-
     dit(2), audit.log(4), attributes(5), privileges(5)

NOTES
     The functionality described in this man  page  is  available
     only  if  the  Basic Security Module (BSM) has been enabled.
     See bsmconv(1M) for more information.































SunOS 5.10          Last change: 31 Mar 2005                    2





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:26:55 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5334 hits)
(openSUSE 10.2)

svn man page (5209 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4870 hits)
(Solaris 10 11_06)

CPAN man page (4607 hits)
(Suse Linux 10.1)

ssh man page (4342 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2885 hits)
(Solaris 10 11_06)

netcat man page (2717 hits)
(Suse Linux 10.1)

pprosetup man page (2493 hits)
(Solaris 10 11_06)

startproc man page (2471 hits)
(Suse Linux 10.1)

signal man page (2408 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: PYRENEES GOLF HOLIDAYS :: Digital Electronic Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum