xref: /freebsd/contrib/openbsm/bin/auditd/auditd.8 (revision 72a600a7a1908f1e778f54e08bd60a93be87dd33)
152267f74SRobert Watson.\" Copyright (c) 2004 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*72a600a7SAlan Somers.Dd April 18, 2020
29ca0716f5SRobert Watson.Dt AUDITD 8
30ca0716f5SRobert Watson.Os
31ca0716f5SRobert Watson.Sh NAME
32ca0716f5SRobert Watson.Nm auditd
33ca0716f5SRobert Watson.Nd audit log management daemon
34ca0716f5SRobert Watson.Sh SYNOPSIS
35bc168a6cSRobert Watson.Nm
367a0a89d2SRobert Watson.Op Fl d | l
37ca0716f5SRobert Watson.Sh DESCRIPTION
38ca0716f5SRobert WatsonThe
39ca0716f5SRobert Watson.Nm
40bc168a6cSRobert Watsondaemon responds to requests from the
41bc168a6cSRobert Watson.Xr audit 8
42bc168a6cSRobert Watsonutility and notifications
43bc168a6cSRobert Watsonfrom the kernel.
44bc168a6cSRobert WatsonIt manages the resulting audit log files and specified
45ca0716f5SRobert Watsonlog file locations.
46ca0716f5SRobert Watson.Pp
47ca0716f5SRobert WatsonThe options are as follows:
48bc168a6cSRobert Watson.Bl -tag -width indent
49ca0716f5SRobert Watson.It Fl d
50bc168a6cSRobert WatsonStarts the daemon in debug mode \[em] it will not daemonize.
517a0a89d2SRobert Watson.It Fl l
527a0a89d2SRobert WatsonThis option is for when
537a0a89d2SRobert Watson.Nm
547a0a89d2SRobert Watsonis configured to start on-demand using
557a0a89d2SRobert Watson.Xr launchd 8 .
56ca0716f5SRobert Watson.El
577a0a89d2SRobert Watson.Pp
587a0a89d2SRobert WatsonOptionally, the audit review group "audit" may be created.
597a0a89d2SRobert WatsonNon-privileged
607a0a89d2SRobert Watsonusers that are members of this group may read the audit trail log files.
61ca0716f5SRobert Watson.Sh NOTE
62ca0716f5SRobert WatsonTo assure uninterrupted audit support, the
63bc168a6cSRobert Watson.Nm
6423bf6e20SRobert Watsondaemon should not be started and stopped manually.
6523bf6e20SRobert WatsonInstead, the
6623bf6e20SRobert Watson.Xr audit 8
6723bf6e20SRobert Watsoncommand
68ca0716f5SRobert Watsonshould be used to inform the daemon to change state/configuration after altering
6923bf6e20SRobert Watsonthe
7023bf6e20SRobert Watson.Pa audit_control
7123bf6e20SRobert Watsonfile.
72ca0716f5SRobert Watson.Pp
737a0a89d2SRobert WatsonIf
74bc168a6cSRobert Watson.Nm
757a0a89d2SRobert Watsonis started on-demand by
767a0a89d2SRobert Watson.Xr launchd 8
777a0a89d2SRobert Watsonthen auditing should only be started and stopped with
787a0a89d2SRobert Watson.Xr audit 8 .
797a0a89d2SRobert Watson.Pp
807a0a89d2SRobert WatsonOn Mac OS X,
817a0a89d2SRobert Watson.Nm
827a0a89d2SRobert Watsonuses the
837a0a89d2SRobert Watson.Xr asl 3
847a0a89d2SRobert WatsonAPI for writing system log messages.
857a0a89d2SRobert WatsonTherefore, only the audit administrator
867a0a89d2SRobert Watsonand members of the audit review group will be able to read the
877a0a89d2SRobert Watsonsystem log entries.
88ca0716f5SRobert Watson.Sh FILES
897a0a89d2SRobert Watson.Bl -tag -width ".Pa /etc/security" -compact
90ca0716f5SRobert Watson.It Pa /var/audit
91ca0716f5SRobert WatsonDefault directory for storing audit log files.
927a0a89d2SRobert Watson.Pp
937a0a89d2SRobert Watson.It Pa /etc/security
947a0a89d2SRobert WatsonThe directory containing the auditing configuration files
957a0a89d2SRobert Watson.Xr audit_class 5 ,
967a0a89d2SRobert Watson.Xr audit_control 5 ,
977a0a89d2SRobert Watson.Xr audit_event 5 ,
987a0a89d2SRobert Watsonand
997a0a89d2SRobert Watson.Xr audit_warn 5 .
100ca0716f5SRobert Watson.El
101bc168a6cSRobert Watson.Sh COMPATIBILITY
102bc168a6cSRobert WatsonThe historical
103bc168a6cSRobert Watson.Fl h
104bc168a6cSRobert Watsonand
105bc168a6cSRobert Watson.Fl s
106bc168a6cSRobert Watsonflags are now configured using
107bc168a6cSRobert Watson.Xr audit_control 5
108bc168a6cSRobert Watsonpolicy flags
109bc168a6cSRobert Watson.Cm ahlt
110bc168a6cSRobert Watsonand
111bc168a6cSRobert Watson.Cm cnt ,
112bc168a6cSRobert Watsonand are no longer available as arguments to
113bc168a6cSRobert Watson.Nm .
114ca0716f5SRobert Watson.Sh SEE ALSO
1157a0a89d2SRobert Watson.Xr asl 3 ,
116bc168a6cSRobert Watson.Xr audit 4 ,
1177a0a89d2SRobert Watson.Xr audit_class 5 ,
118bc168a6cSRobert Watson.Xr audit_control 5 ,
1197a0a89d2SRobert Watson.Xr audit_event 5 ,
1207a0a89d2SRobert Watson.Xr audit_warn 5 ,
1217a0a89d2SRobert Watson.Xr audit 8 ,
122aa772005SRobert Watson.Xr auditdistd 8 ,
123b6a05070SChristian Brueffer.Xr launchd 8 (Mac OS X)
124bc168a6cSRobert Watson.Sh HISTORY
125bc168a6cSRobert WatsonThe OpenBSM implementation was created by McAfee Research, the security
126bc168a6cSRobert Watsondivision of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
127bc168a6cSRobert WatsonIt was subsequently adopted by the TrustedBSD Project as the foundation for
128bc168a6cSRobert Watsonthe OpenBSM distribution.
129ca0716f5SRobert Watson.Sh AUTHORS
130bc168a6cSRobert Watson.An -nosplit
131ca0716f5SRobert WatsonThis software was created by McAfee Research, the security research division
132ca0716f5SRobert Watsonof McAfee, Inc., under contract to Apple Computer Inc.
133bc168a6cSRobert WatsonAdditional authors include
134bc168a6cSRobert Watson.An Wayne Salamon ,
135bc168a6cSRobert Watson.An Robert Watson ,
136bc168a6cSRobert Watsonand SPARTA Inc.
137ca0716f5SRobert Watson.Pp
138ca0716f5SRobert WatsonThe Basic Security Module (BSM) interface to audit records and audit event
139ca0716f5SRobert Watsonstream format were defined by Sun Microsystems.
140