1aa772005SRobert Watson.\" Copyright (c) 2004-2009 Apple Inc. 2ca0716f5SRobert Watson.\" All rights reserved. 3ca0716f5SRobert Watson.\" 4ca0716f5SRobert Watson.\" Redistribution and use in source and binary forms, with or without 5ca0716f5SRobert Watson.\" modification, are permitted provided that the following conditions 6ca0716f5SRobert Watson.\" are met: 7ca0716f5SRobert Watson.\" 1. Redistributions of source code must retain the above copyright 8ca0716f5SRobert Watson.\" notice, this list of conditions and the following disclaimer. 9ca0716f5SRobert Watson.\" 2. Redistributions in binary form must reproduce the above copyright 10ca0716f5SRobert Watson.\" notice, this list of conditions and the following disclaimer in the 11ca0716f5SRobert Watson.\" documentation and/or other materials provided with the distribution. 1252267f74SRobert Watson.\" 3. Neither the name of Apple Inc. ("Apple") nor the names of 13ca0716f5SRobert Watson.\" its contributors may be used to endorse or promote products derived 14ca0716f5SRobert Watson.\" from this software without specific prior written permission. 15ca0716f5SRobert Watson.\" 16ca0716f5SRobert Watson.\" THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND 17ca0716f5SRobert Watson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18ca0716f5SRobert Watson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19ca0716f5SRobert Watson.\" ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR 20ca0716f5SRobert Watson.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21ca0716f5SRobert Watson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22ca0716f5SRobert Watson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23ca0716f5SRobert Watson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 24ca0716f5SRobert Watson.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 25ca0716f5SRobert Watson.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26ca0716f5SRobert Watson.\" POSSIBILITY OF SUCH DAMAGE. 27ca0716f5SRobert Watson.\" 28*6f3d7c0eSAlan Somers.Dd June 11, 2018 29ca0716f5SRobert Watson.Dt PRAUDIT 1 30ca0716f5SRobert Watson.Os 31ca0716f5SRobert Watson.Sh NAME 32ca0716f5SRobert Watson.Nm praudit 33ca0716f5SRobert Watson.Nd "print the contents of audit trail files" 34ca0716f5SRobert Watson.Sh SYNOPSIS 35bc168a6cSRobert Watson.Nm 36aa772005SRobert Watson.Op Fl lnpx 37bc168a6cSRobert Watson.Op Fl r | s 38ca0716f5SRobert Watson.Op Fl d Ar del 39bc168a6cSRobert Watson.Op Ar 40ca0716f5SRobert Watson.Sh DESCRIPTION 41ca0716f5SRobert WatsonThe 42ca0716f5SRobert Watson.Nm 43ca0716f5SRobert Watsonutility prints the contents of the audit trail files to the standard output in 44ca0716f5SRobert Watsonhuman-readable form. 45bc168a6cSRobert WatsonIf no 46bc168a6cSRobert Watson.Ar file 47bc168a6cSRobert Watsonargument is specified, the standard input is used 48ca0716f5SRobert Watsonby default. 49ca0716f5SRobert Watson.Pp 50ca0716f5SRobert WatsonThe options are as follows: 51bc168a6cSRobert Watson.Bl -tag -width indent 52bc168a6cSRobert Watson.It Fl d Ar del 53bc168a6cSRobert WatsonSpecifies the delimiter. 54bc168a6cSRobert WatsonThe default delimiter is the comma. 55ca0716f5SRobert Watson.It Fl l 56ca0716f5SRobert WatsonPrints the entire record on the same line. 57ca0716f5SRobert WatsonIf this option is not specified, 58ca0716f5SRobert Watsonevery token is displayed on a different line. 59aa772005SRobert Watson.It Fl n 60aa772005SRobert WatsonDo not convert user and group IDs to their names but leave in their 61aa772005SRobert Watsonnumeric forms. 62bc168a6cSRobert Watson.It Fl p 63bc168a6cSRobert WatsonSpecify this option if input to 64bc168a6cSRobert Watson.Nm 65bc168a6cSRobert Watsonis piped from the 66bc168a6cSRobert Watson.Xr tail 1 67bc168a6cSRobert Watsonutility. 68bc168a6cSRobert WatsonThis causes 69bc168a6cSRobert Watson.Nm 70bc168a6cSRobert Watsonto sync to the start of the next record. 71ca0716f5SRobert Watson.It Fl r 72ca0716f5SRobert WatsonPrints the records in their raw, numeric form. 73ca0716f5SRobert WatsonThis option is exclusive from 74bc168a6cSRobert Watson.Fl s . 75ca0716f5SRobert Watson.It Fl s 76ca0716f5SRobert WatsonPrints the tokens in their short form. 77ca0716f5SRobert WatsonShort text representations for 78ca0716f5SRobert Watsonrecord and event type are displayed. 79ca0716f5SRobert WatsonThis option is exclusive from 80bc168a6cSRobert Watson.Fl r . 81bc168a6cSRobert Watson.It Fl x 82bc168a6cSRobert WatsonPrint audit records in the XML output format. 83ca0716f5SRobert Watson.El 84ca0716f5SRobert Watson.Pp 85ca0716f5SRobert WatsonIf the raw or short forms are not specified, the default is to print the tokens 86ca0716f5SRobert Watsonin their long form. 87ca0716f5SRobert WatsonEvents are displayed as per their descriptions given in 88ca0716f5SRobert Watson.Pa /etc/security/audit_event ; 89bc168a6cSRobert WatsonUIDs and GIDs are expanded to their names; 90ca0716f5SRobert Watsondates and times are displayed in human-readable format. 91*6f3d7c0eSAlan Somers.Sh EXIT STATUS 92*6f3d7c0eSAlan Somers.Ex -std 93ca0716f5SRobert Watson.Sh FILES 94bc168a6cSRobert Watson.Bl -tag -width ".Pa /etc/security/audit_control" -compact 95ca0716f5SRobert Watson.It Pa /etc/security/audit_class 96bc168a6cSRobert WatsonDescriptions of audit event classes. 97ca0716f5SRobert Watson.It Pa /etc/security/audit_event 98bc168a6cSRobert WatsonDescriptions of audit events. 99ca0716f5SRobert Watson.El 100ca0716f5SRobert Watson.Sh SEE ALSO 101bc168a6cSRobert Watson.Xr auditreduce 1 , 102bc168a6cSRobert Watson.Xr audit 4 , 103bc168a6cSRobert Watson.Xr auditpipe 4 , 104ca0716f5SRobert Watson.Xr audit_class 5 , 105ca0716f5SRobert Watson.Xr audit_event 5 106bc168a6cSRobert Watson.Sh HISTORY 107bc168a6cSRobert WatsonThe OpenBSM implementation was created by McAfee Research, the security 108bc168a6cSRobert Watsondivision of McAfee Inc., under contract to Apple Computer Inc.\& in 2004. 109bc168a6cSRobert WatsonIt was subsequently adopted by the TrustedBSD Project as the foundation for 110bc168a6cSRobert Watsonthe OpenBSM distribution. 111ca0716f5SRobert Watson.Sh AUTHORS 112bc168a6cSRobert Watson.An -nosplit 113ca0716f5SRobert WatsonThis software was created by McAfee Research, the security research division 114ca0716f5SRobert Watsonof McAfee, Inc., under contract to Apple Computer Inc. 115bc168a6cSRobert WatsonAdditional authors include 116bc168a6cSRobert Watson.An Wayne Salamon , 117bc168a6cSRobert Watson.An Robert Watson , 118bc168a6cSRobert Watsonand SPARTA Inc. 119ca0716f5SRobert Watson.Pp 120ca0716f5SRobert WatsonThe Basic Security Module (BSM) interface to audit records and audit event 121ca0716f5SRobert Watsonstream format were defined by Sun Microsystems. 122