2 .\" Copyright (c) 2008 Apple Inc. All rights reserved.
 
   4 .\" @APPLE_LICENSE_HEADER_START@
 
   6 .\" This file contains Original Code and/or Modifications of Original Code
 
   7 .\" as defined in and that are subject to the Apple Public Source License
 
   8 .\" Version 2.0 (the 'License'). You may not use this file except in
 
   9 .\" compliance with the License. Please obtain a copy of the License at
 
  10 .\" http://www.opensource.apple.com/apsl/ and read it before using this
 
  13 .\" The Original Code and all software distributed under the License are
 
  14 .\" distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 
  15 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 
  16 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 
  17 .\" FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 
  18 .\" Please see the License for the specific language governing rights and
 
  19 .\" limitations under the License.
 
  21 .\" @APPLE_LICENSE_HEADER_END@
 
  28 .Nd "commit BSM audit record to audit log"
 
  32 .Fn audit "const char *record" "u_int length"
 
  37 submits a completed BSM audit record to the system audit log.
 
  42 is a pointer to the specific event to be recorded and
 
  44 is the size in bytes of the data to be written.
 
  50 system call will fail and the data never written if:
 
  55 argument is beyond the allocated address space of the process.
 
  57 The token ID is invalid or
 
  62 The process does not have sufficient permission to complete
 
  75 The OpenBSM implementation was created by McAfee Research, the security
 
  76 division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
 
  77 It was subsequently adopted by the TrustedBSD Project as the foundation for
 
  78 the OpenBSM distribution.
 
  81 This software was created by McAfee Research, the security research division
 
  82 of McAfee, Inc., under contract to Apple Computer Inc.
 
  83 Additional authors include
 
  88 The Basic Security Module (BSM) interface to audit records and audit event
 
  89 stream format were defined by Sun Microsystems.
 
  91 This manual page was written by
 
  92 .An Tom Rhodes Aq trhodes@FreeBSD.org .
 
  94 The kernel does not fully validate that the argument passed is syntactically
 
  95 valid BSM.  Submitting invalid audit records may corrupt the audit log.