]> git.saurik.com Git - apple/xnu.git/blame - bsd/man/man4/audit.4
xnu-3789.70.16.tar.gz
[apple/xnu.git] / bsd / man / man4 / audit.4
CommitLineData
b0d623f7
A
1.\" Copyright (c) 2006 Robert N. M. Watson
2.\" Copyright (c) 2009 Apple, Inc.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the
12.\" documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: src/share/man/man4/audit.4,v 1.10 2006/12/14 16:40:57 mpp Exp $
27.\"
28.Dd March 23, 2009
29.Os
30.Dt AUDIT 4
31.Sh NAME
32.Nm audit
33.Nd Security Event Audit
34.Sh SYNOPSIS
35.\" .Cd "options AUDIT"
36.Fd #include <bsm/audit.h>
37.Fd #include <bsm/audit_internal.h>
38.Fd #include <bsm/audit_kevents.h>
39.Sh DESCRIPTION
40Security Event Audit is a facility to provide fine-grained, configurable
41logging of security-relevant events, and is intended to meet the requirements
42of the Common Criteria (CC) Common Access Protection Profile (CAPP)
43evaluation.
44The
45.Fx
46and Mac OS X
47.Nm
48facility implements the de facto industry standard BSM API, file
49formats, and command line interface, first found in the Solaris operating
50system.
51Information on the user space implementation can be found in
52.Xr libbsm 3 .
53.Pp
54Audit support is enabled at boot, if present in the kernel, using an
55.Xr rc.conf 5
56flag or, on Mac OS X, by editing the
57.Pa /System/Library/LaunchDaemons/com.apple.auditd.plist
58launchd plist file and removing the disabled key or changing its value
59to false.
60The audit daemon,
61.Xr auditd 8 ,
62is responsible for configuring the kernel to perform
63.Nm ,
64pushing
65configuration data from the various audit configuration files into the
66kernel.
67.Ss Audit Special Device
68The
69.Fx
70kernel
71.Nm
72facility provides a special device,
73.Pa /dev/audit ,
74which is used by
75.Xr auditd 8
76to monitor for
77.Nm
78events, such as requests to cycle the log, low disk
79space conditions, and requests to terminate auditing.
80This device is not intended for use by applications.
81Mac OS X provides this same functionality using Mach IPC and
82a host special port.
83.Ss Audit Pipe Special Devices
84Audit pipe special devices, discussed in
85.Xr auditpipe 4 ,
86provide a configurable live tracking mechanism to allow applications to
87tee the audit trail, as well as to configure custom preselection parameters
88to track users and events in a fine-grained manner.
89.Sh SEE ALSO
90.Xr auditreduce 1 ,
91.Xr praudit 1 ,
92.Xr audit 2 ,
93.Xr auditctl 2 ,
94.Xr auditon 2 ,
95.Xr getaudit 2 ,
96.Xr getauid 2 ,
97.Xr poll 2 ,
98.Xr select 2 ,
99.Xr setaudit 2 ,
100.Xr setauid 2 ,
101.Xr libbsm 3 ,
102.Xr auditpipe 4 ,
103.Xr audit_class 5 ,
104.Xr audit_control 5 ,
105.Xr audit_event 5 ,
106.Xr audit.log 5 ,
107.Xr audit_user 5 ,
108.Xr audit_warn 5 ,
109.Xr launchd.plist 5 ,
110.Xr rc.conf 5 ,
111.Xr audit 8 ,
112.Xr auditd 8
113.Sh HISTORY
114The
115.Tn OpenBSM
116implementation was created by McAfee Research, the security
117division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
118It was subsequently adopted by the TrustedBSD Project as the foundation for
119the OpenBSM distribution.
120.Pp
121Support for kernel
122.Nm
123first appeared in Mac OS X 10.3 and
124.Fx 6.2 .
125.Sh AUTHORS
126.An -nosplit
127This software was created by McAfee Research, the security research division
128of McAfee, Inc., under contract to Apple Computer Inc.
129Additional authors include
130.An Wayne Salamon ,
131.An Stacey Son ,
132.An Robert Watson ,
133and SPARTA Inc.
134.Pp
135The Basic Security Module (BSM) interface to audit records and audit event
136stream format were defined by Sun Microsystems.
137.Pp
138This manual page was written by
139.An Robert Watson Aq rwatson@FreeBSD.org .
140.Sh BUGS
141The
142.Nm
143facility in
144.Fx
145is considered experimental, and production deployment should occur only after
146careful consideration of the risks of deploying experimental software.
147.Pp
148The Mac OS X and
149.Fx
150kernel do not fully validate that audit records submitted by user
151applications are syntactically valid BSM; as submission of records is limited
152to privileged processes, this is not a critical bug.
153.Pp
154Instrumentation of auditable events in the kernel is not complete, as some
155system calls do not generate audit records, or generate audit records with
156incomplete argument information.
157.Pp
158Mandatory Access Control (MAC) labels, as provided by the
159.Xr mac 4
160facility, are not audited as part of records involving MAC decisions.