]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/openbsm/bin/praudit/praudit.1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / openbsm / bin / praudit / praudit.1
1 .\" Copyright (c) 2004-2009 Apple Inc.
2 .\" All rights reserved.
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
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
11 .\"     documentation and/or other materials provided with the distribution.
12 .\" 3.  Neither the name of Apple 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 .\"
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#14 $
29 .\"
30 .Dd August 4, 2009
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
38 .Op Fl lnpx
39 .Op Fl r | s
40 .Op Fl d Ar del
41 .Op Ar
42 .Sh DESCRIPTION
43 The
44 .Nm
45 utility prints the contents of the audit trail files to the standard output in
46 human-readable form.
47 If no
48 .Ar file
49 argument is specified, the standard input is used
50 by default.
51 .Pp
52 The options are as follows:
53 .Bl -tag -width indent
54 .It Fl d Ar del
55 Specifies the delimiter.
56 The default delimiter is the comma.
57 .It Fl l
58 Prints the entire record on the same line.
59 If this option is not specified,
60 every token is displayed on a different line.
61 .It Fl n
62 Do not convert user and group IDs to their names but leave in their
63 numeric forms.
64 .It Fl p
65 Specify this option if input to
66 .Nm
67 is piped from the
68 .Xr tail 1
69 utility.
70 This causes
71 .Nm
72 to sync to the start of the next record.
73 .It Fl r
74 Prints the records in their raw, numeric form.
75 This option is exclusive from
76 .Fl s .
77 .It Fl s
78 Prints the tokens in their short form.
79 Short text representations for
80 record and event type are displayed.
81 This option is exclusive from
82 .Fl r .
83 .It Fl x
84 Print audit records in the XML output format.
85 .El
86 .Pp
87 If the raw or short forms are not specified, the default is to print the tokens
88 in their long form.
89 Events are displayed as per their descriptions given in
90 .Pa /etc/security/audit_event ;
91 UIDs and GIDs are expanded to their names;
92 dates and times are displayed in human-readable format.
93 .Sh FILES
94 .Bl -tag -width ".Pa /etc/security/audit_control" -compact
95 .It Pa /etc/security/audit_class
96 Descriptions of audit event classes.
97 .It Pa /etc/security/audit_event
98 Descriptions of audit events.
99 .El
100 .Sh SEE ALSO
101 .Xr auditreduce 1 ,
102 .Xr audit 4 ,
103 .Xr auditpipe 4 ,
104 .Xr audit_class 5 ,
105 .Xr audit_event 5
106 .Sh HISTORY
107 The OpenBSM implementation was created by McAfee Research, the security
108 division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
109 It was subsequently adopted by the TrustedBSD Project as the foundation for
110 the OpenBSM distribution.
111 .Sh AUTHORS
112 .An -nosplit
113 This software was created by McAfee Research, the security research division
114 of McAfee, Inc., under contract to Apple Computer Inc.
115 Additional authors include
116 .An Wayne Salamon ,
117 .An Robert Watson ,
118 and SPARTA Inc.
119 .Pp
120 The Basic Security Module (BSM) interface to audit records and audit event
121 stream format were defined by Sun Microsystems.