xref: /freebsd/contrib/openbsm/bin/audit/audit.8 (revision b626f5a73a48f44a31a200291b141e1da408a2ff)
106edd2f1SRobert 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.\"
8ca0716f5SRobert Watson.\" 1.  Redistributions of source code must retain the above copyright
9ca0716f5SRobert Watson.\"     notice, this list of conditions and the following disclaimer.
10ca0716f5SRobert Watson.\" 2.  Redistributions in binary form must reproduce the above copyright
11ca0716f5SRobert Watson.\"     notice, this list of conditions and the following disclaimer in the
12ca0716f5SRobert Watson.\"     documentation and/or other materials provided with the distribution.
1352267f74SRobert Watson.\" 3.  Neither the name of Apple Inc. ("Apple") nor the names of
14ca0716f5SRobert Watson.\"     its contributors may be used to endorse or promote products derived
15ca0716f5SRobert Watson.\"     from this software without specific prior written permission.
16ca0716f5SRobert Watson.\"
17ca0716f5SRobert Watson.\" THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18ca0716f5SRobert Watson.\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19ca0716f5SRobert Watson.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20ca0716f5SRobert Watson.\" DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21ca0716f5SRobert Watson.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22ca0716f5SRobert Watson.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23ca0716f5SRobert Watson.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24ca0716f5SRobert Watson.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25ca0716f5SRobert Watson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26ca0716f5SRobert Watson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27ca0716f5SRobert Watson.\"
28*b6a05070SChristian Brueffer.Dd July 25, 2015
29ca0716f5SRobert Watson.Dt AUDIT 8
30ca0716f5SRobert Watson.Os
31ca0716f5SRobert Watson.Sh NAME
32ca0716f5SRobert Watson.Nm audit
33ca0716f5SRobert Watson.Nd audit management utility
34ca0716f5SRobert Watson.Sh SYNOPSIS
35bc168a6cSRobert Watson.Nm
3606edd2f1SRobert Watson.Fl e | i | n | s | t
37ca0716f5SRobert Watson.Sh DESCRIPTION
38ca0716f5SRobert WatsonThe
39ca0716f5SRobert Watson.Nm
40742561f0SRobert Watsonutility controls the state of the audit system.
41bc168a6cSRobert WatsonOne of the following flags is required as an argument to
42bc168a6cSRobert Watson.Nm :
43bc168a6cSRobert Watson.Bl -tag -width indent
4406edd2f1SRobert Watson.It Fl e
4506edd2f1SRobert WatsonForces the audit system to immediately remove audit log files that
4606edd2f1SRobert Watsonmeet the expiration criteria specified in the audit control file without
4706edd2f1SRobert Watsondoing a log rotation.
487a0a89d2SRobert Watson.It Fl i
497a0a89d2SRobert WatsonInitializes and starts auditing.
507a0a89d2SRobert WatsonThis option is currently for Mac OS X only
517a0a89d2SRobert Watsonand requires
527a0a89d2SRobert Watson.Xr auditd 8
537a0a89d2SRobert Watsonto be configured to run under
547a0a89d2SRobert Watson.Xr launchd 8 .
55ca0716f5SRobert Watson.It Fl n
56ca0716f5SRobert WatsonForces the audit system to close the existing audit log file and rotate to
57ca0716f5SRobert Watsona new log file in a location specified in the audit control file.
5806edd2f1SRobert WatsonAlso, audit log files that meet the expiration criteria specified in the
5906edd2f1SRobert Watsonaudit control file will be removed.
60ca0716f5SRobert Watson.It Fl s
61ca0716f5SRobert WatsonSpecifies that the audit system should [re]synchronize its
62742561f0SRobert Watsonconfiguration from the audit control file.
63742561f0SRobert WatsonA new log file will be created.
64ca0716f5SRobert Watson.It Fl t
65742561f0SRobert WatsonSpecifies that the audit system should terminate.
66742561f0SRobert WatsonLog files are closed
67ca0716f5SRobert Watsonand renamed to indicate the time of the shutdown.
68ca0716f5SRobert Watson.El
69ca0716f5SRobert Watson.Sh NOTES
7023bf6e20SRobert WatsonThe
7123bf6e20SRobert Watson.Xr auditd 8
7223bf6e20SRobert Watsondaemon must already be running.
737a0a89d2SRobert WatsonOptionally, it can be configured to be started
747a0a89d2SRobert Watsonon-demand by
757a0a89d2SRobert Watson.Xr launchd 8
767a0a89d2SRobert Watson(Mac OS X only).
777a0a89d2SRobert WatsonThe
787a0a89d2SRobert Watson.Nm
797a0a89d2SRobert Watsonutility requires audit administrator privileges for successful operation.
80ca0716f5SRobert Watson.Sh FILES
81bc168a6cSRobert Watson.Bl -tag -width ".Pa /etc/security/audit_control" -compact
82ca0716f5SRobert Watson.It Pa /etc/security/audit_control
83bc168a6cSRobert WatsonAudit policy file used to configure the auditing system.
84ca0716f5SRobert Watson.El
85ca0716f5SRobert Watson.Sh SEE ALSO
86bc168a6cSRobert Watson.Xr audit 4 ,
8723bf6e20SRobert Watson.Xr audit_control 5 ,
887a0a89d2SRobert Watson.Xr auditd 8 ,
89*b6a05070SChristian Brueffer.Xr launchd 8 (Mac OS X)
90bc168a6cSRobert Watson.Sh HISTORY
91bc168a6cSRobert WatsonThe OpenBSM implementation was created by McAfee Research, the security
92bc168a6cSRobert Watsondivision of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
93bc168a6cSRobert WatsonIt was subsequently adopted by the TrustedBSD Project as the foundation for
94bc168a6cSRobert Watsonthe OpenBSM distribution.
95ca0716f5SRobert Watson.Sh AUTHORS
96bc168a6cSRobert Watson.An -nosplit
97ca0716f5SRobert WatsonThis software was created by McAfee Research, the security research division
98ca0716f5SRobert Watsonof McAfee, Inc., under contract to Apple Computer Inc.
99bc168a6cSRobert WatsonAdditional authors include
100bc168a6cSRobert Watson.An Wayne Salamon ,
101bc168a6cSRobert Watson.An Robert Watson ,
102bc168a6cSRobert Watsonand SPARTA Inc.
103ca0716f5SRobert Watson.Pp
104ca0716f5SRobert WatsonThe Basic Security Module (BSM) interface to audit records and audit event
105ca0716f5SRobert Watsonstream format were defined by Sun Microsystems.
106