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