xref: /freebsd/contrib/openbsm/man/audit_control.5 (revision bb97b41819ea5a5e5315006cdad6902bfa2b7eb6)
1ca0716f5SRobert Watson.\" Copyright (c) 2004 Apple Computer, 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.
12ca0716f5SRobert Watson.\" 3.  Neither the name of Apple Computer, 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.\"
28bb97b418SRobert Watson.\" $P4: //depot/projects/trustedbsd/openbsm/man/audit_control.5#11 $
29ca0716f5SRobert Watson.\"
3023bf6e20SRobert Watson.Dd January 4, 2006
31ca0716f5SRobert Watson.Dt AUDIT_CONTROL 5
32ca0716f5SRobert Watson.Os
33ca0716f5SRobert Watson.Sh NAME
34ca0716f5SRobert Watson.Nm audit_control
35ca0716f5SRobert Watson.Nd "contains audit system parameters"
36ca0716f5SRobert Watson.Sh DESCRIPTION
37ca0716f5SRobert WatsonThe
38ca0716f5SRobert Watson.Nm
39ca0716f5SRobert Watsonfile contains several audit system parameters.
40ca0716f5SRobert WatsonEach line of this file is of the form:
4123bf6e20SRobert Watson.Pp
4223bf6e20SRobert Watson.Dl parameter:value
4323bf6e20SRobert Watson.Pp
44ca0716f5SRobert WatsonThe parameters are:
45ca0716f5SRobert Watson.Bl -tag -width Ds
46ca0716f5SRobert Watson.It Pa dir
47ca0716f5SRobert WatsonThe directory where audit log files are stored.
48ca0716f5SRobert WatsonThere may be more than one of these entries.
49ca0716f5SRobert WatsonChanges to this entry can only be enacted by restarting the
50ca0716f5SRobert Watsonaudit system.
51ca0716f5SRobert WatsonSee
52ca0716f5SRobert Watson.Xr audit 1
53ca0716f5SRobert Watsonfor a description of how to restart the audit system.
54ca0716f5SRobert Watson.It Va flags
55ca0716f5SRobert WatsonSpecifies which audit event classes are audited for all users.
56ca0716f5SRobert Watson.Xr audit_user 5
57ca0716f5SRobert Watsondescribes how to audit events for individual users.
58ca0716f5SRobert WatsonSee the information below for the format of the audit flags.
59ca0716f5SRobert Watson.It Va naflags
60ca0716f5SRobert WatsonContains the audit flags that define what classes of events are audited when
61ca0716f5SRobert Watsonan action cannot be attributed to a specific user.
62ca0716f5SRobert Watson.It Va minfree
63ca0716f5SRobert WatsonThe minimum free space required on the file system audit logs are being written to.
64ca0716f5SRobert WatsonWhen the free space falls below this limit a warning will be issued.
65ca0716f5SRobert WatsonNot currently used as the value of 20 percent is chosen by the kernel.
66bb97b418SRobert Watson.It Va policy
67bb97b418SRobert WatsonA list of global audit policy flags specifying various behaviors, such as
68bb97b418SRobert Watsonfail stop, auditing of paths and arguments, etc.
69ca0716f5SRobert Watson.El
70ca0716f5SRobert Watson.Sh AUDIT FLAGS
7123bf6e20SRobert WatsonAudit flags are a comma-delimited list of audit classes as defined in the
7223bf6e20SRobert Watson.Pa audit_class
7323bf6e20SRobert Watsonfile.
74ca0716f5SRobert WatsonSee
75ca0716f5SRobert Watson.Xr audit_class 5
76ca0716f5SRobert Watsonfor details.
77ca0716f5SRobert WatsonEvent classes may be preceded by a prefix which changes their interpretation.
78ca0716f5SRobert WatsonThe following prefixes may be used for each class:
7923bf6e20SRobert Watson.Pp
80ca0716f5SRobert Watson.Bl -tag -width Ds -compact -offset indent
81ca0716f5SRobert Watson.It +
82ca0716f5SRobert WatsonRecord successful events
83ca0716f5SRobert Watson.It -
84ca0716f5SRobert WatsonRecord failed events
85ca0716f5SRobert Watson.It ^
86ca0716f5SRobert WatsonRecord both successful and failed events
87ca0716f5SRobert Watson.It ^+
8823bf6e20SRobert WatsonDo not record successful events
89ca0716f5SRobert Watson.It ^-
9023bf6e20SRobert WatsonDo not record failed events
91ca0716f5SRobert Watson.El
92bb97b418SRobert Watson.Sh AUDIT POLICY FLAGS
93bb97b418SRobert WatsonThe policy flags field is a comma-delimited list of policy flags from the
94bb97b418SRobert Watsonfollowing list:
95bb97b418SRobert Watson.Pp
96bb97b418SRobert Watson.Bl -tag -width zonename -compact -offset indent
97bb97b418SRobert Watson.It cnt
98bb97b418SRobert WatsonAllow processes to continue running even though events are not being audited.
99bb97b418SRobert WatsonIf not set, processes will be suspended when the audit store space is
100bb97b418SRobert Watsonexhausted.
101bb97b418SRobert WatsonCurrently, this is not a recoverable state.
102bb97b418SRobert Watson.It ahlt
103bb97b418SRobert WatsonFail stop the system if unable to audit an event--this consists of first
104bb97b418SRobert Watsondraining pending records to disk, and then halting the operating system.
105bb97b418SRobert Watson.It argv
106bb97b418SRobert WatsonAudit command line arguments to
107bb97b418SRobert Watson.Xr execve 2 .
108bb97b418SRobert Watson.It arge
109bb97b418SRobert WatsonAudit environmental variable arguments to
110bb97b418SRobert Watson.Xr execve 2 .
111bb97b418SRobert Watson.It seq
112bb97b418SRobert WatsonInclude a unique audit sequence number token in generated audit records (not
113bb97b418SRobert Watsonimplemented on FreeBSD or Darwin).
114bb97b418SRobert Watson.It group
115bb97b418SRobert WatsonInclude supplementary groups list in generated audit records (not implemented
116bb97b418SRobert Watsonon FreeBSD or Darwin; supplementary groups are never included in records on
117bb97b418SRobert Watsonthese systems).
118bb97b418SRobert Watson.It trail
119bb97b418SRobert WatsonAppend a trailer token to each audit record (not implemented on FreeBSD or
120bb97b418SRobert WatsonDarwin; trailers are always included in records on these systems).
121bb97b418SRobert Watson.It path
122bb97b418SRobert WatsonInclude secondary file paths in audit records (not implemented on FreeBSD or
123bb97b418SRobert WatsonDarwin; secondary paths are never included in records on these systems).
124bb97b418SRobert Watson.It zonename
125bb97b418SRobert WatsonInclude a zone ID token with each audit record (not implemented on FreeBSD or
126bb97b418SRobert WatsonDarwin; FreeBSD audit records do not currently include the jail ID or name.)
127bb97b418SRobert Watson.It perzone
128bb97b418SRobert WatsonEnable auditing for each local zone (not implemented on FreeBSD or Darwin; on
129bb97b418SRobert WatsonFreeBSD, audit records are collected from all jails and placed in a single
130bb97b418SRobert Watsonglobal trail, and only limited audit controls are permitted within a jail.)
131bb97b418SRobert Watson.El
132bb97b418SRobert Watson.Pp
133bb97b418SRobert WatsonIt is recommended that installations set the
134bb97b418SRobert Watson.Dv cnt
135bb97b418SRobert Watsonflag but not
136bb97b418SRobert Watson.Dv ahlt
137bb97b418SRobert Watsonflag unless it is intended that audit logs exceeding available disk space
138bb97b418SRobert Watsonhalt the system.
139ca0716f5SRobert Watson.Sh DEFAULT
140ca0716f5SRobert WatsonThe following settings appear in the default
141ca0716f5SRobert Watson.Nm
142ca0716f5SRobert Watsonfile:
143ca0716f5SRobert Watson.Bd -literal -offset indent
144ca0716f5SRobert Watsondir:/var/audit
14523bf6e20SRobert Watsonflags:lo
146ca0716f5SRobert Watsonminfree:20
147ca0716f5SRobert Watsonnaflags:lo
148bb97b418SRobert Watsonpolicy:cnt
149ca0716f5SRobert Watson.Ed
150ca0716f5SRobert Watson.Pp
151ca0716f5SRobert WatsonThe
152ca0716f5SRobert Watson.Va flags
153ca0716f5SRobert Watsonparameter above specifies the system-wide mask corresponding to login/logout
15423bf6e20SRobert Watsonevents.
155bb97b418SRobert WatsonThe
156bb97b418SRobert Watson.Va policy
157bb97b418SRobert Watsonparameter specifies that the system should neither fail stop nor suspend
158bb97b418SRobert Watsonprocesses when the audit store fills.
159bb97b418SRobert Watsonwill be audited.
160ca0716f5SRobert Watson.Sh FILES
161ca0716f5SRobert Watson.Bl -tag -width "/etc/security/audit_control" -compact
162ca0716f5SRobert Watson.It Pa /etc/security/audit_control
163ca0716f5SRobert Watson.El
164ca0716f5SRobert Watson.Sh SEE ALSO
165ca0716f5SRobert Watson.Xr audit_class 5 ,
16623bf6e20SRobert Watson.Xr audit_user 5 ,
16723bf6e20SRobert Watson.Xr audit 8 ,
16823bf6e20SRobert Watson.Xr auditd 8
169ca0716f5SRobert Watson.Sh AUTHORS
170ca0716f5SRobert WatsonThis software was created by McAfee Research, the security research division
171ca0716f5SRobert Watsonof McAfee, Inc., under contract to Apple Computer Inc.
172ca0716f5SRobert WatsonAdditional authors include Wayne Salamon, Robert Watson, and SPARTA Inc.
173ca0716f5SRobert Watson.Pp
174ca0716f5SRobert WatsonThe Basic Security Module (BSM) interface to audit records and audit event
175ca0716f5SRobert Watsonstream format were defined by Sun Microsystems.
176ca0716f5SRobert Watson.Sh HISTORY
177ca0716f5SRobert WatsonThe OpenBSM implementation was created by McAfee Research, the security
178ca0716f5SRobert Watsondivision of McAfee Inc., under contract to Apple Computer Inc. in 2004.
179ca0716f5SRobert WatsonIt was subsequently adopted by the TrustedBSD Project as the foundation for
180ca0716f5SRobert Watsonthe OpenBSM distribution.
181