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

auditsvc 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                                          auditsvc(2)



NAME
     auditsvc - write audit log to specified file descriptor

SYNOPSIS
     cc [ flag... ] file... -lbsm -lsocket -lnsl  [ 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 pro-
     gram can take action to avoid running out of disk space.

     The auditsvc() function does not return  until  one  of  the
     following conditions occurs:

       o  The process receives a signal that is  not  blocked  or
          ignored.

       o  An error is encountered writing to the audit log file.

       o  The minimum free space (as  specified  by  limit),  has
          been reached.


RETURN VALUES
     The auditsvc() function returns only on an error.

ERRORS
     The auditsvc() function will fail if:

     EAGAIN          The descriptor referred  to  a  stream,  was
                     marked  for System V-style non-blocking I/O,
                     and no data could be written immediately.



     EBADF           The fd argument is not  a  valid  descriptor
                     open for writing.





SunOS 5.10          Last change: 31 Mar 2005                    1






System Calls                                          auditsvc(2)



     EBUSY           A second process attempted to  perform  this
                     call.



     EFBIG           An attempt was made to  write  a  file  that
                     exceeds the process's file size limit or the
                     maximum file size.



     EINTR           The call is forced to terminate  prematurely
                     due   to  the  arrival  of  a  signal  whose
                     SV_INTERRUPT bit in sv_flags  is  set   (see
                     sigvec(3UCB)).  The signal(3C) function sets
                     this bit for any signal it catches.



     EINVAL          Auditing is disabled  (see  auditon(2)),  or
                     the  fd argument does not refer to a file of
                     an  appropriate  type  (regular  files   are
                     always appropriate.)



     EIO             An I/O error occurred while reading from  or
                     writing to the file system.



     ENOSPC          The user's quota of disk blocks on the  file
                     system   containing   the   file   has  been
                     exhausted; audit filesystem space  is  below
                     the  specified  limit;  or  there is no free
                     space remaining on the file system  contain-
                     ing the file.



     ENXIO           A hangup occurred on the stream being  writ-
                     ten to.



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







SunOS 5.10          Last change: 31 Mar 2005                    2






System Calls                                          auditsvc(2)



     EWOULDBLOCK     The file was marked for 4.2  BSD-style  non-
                     blocking  I/O,  and no data could be written
                     immediately.



USAGE
     Only processes with appropriate privileges can execute  this
     call successfully.

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

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


SEE ALSO
     auditd(1M), bsmconv(1M), audit(2), auditon(2), sigvec(3UCB),
     audit.log(4), attributes(5), privileges(5)

NOTES
     The functionality described on this manual page is  internal
     to  auditd(1M)  and  might  not  be  supported  in  a future
     release.

     The functionality described on 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                    3





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 (2884 hits)
(Solaris 10 11_06)

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

pprosetup man page (2492 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 Summer Activities :: Electronic Circuit 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