Deleted Added
full compact
audit.4 (161875) audit.4 (162871)
1.\" Copyright (c) 2006 Robert N. M. Watson
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.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2006 Robert N. M. Watson
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.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man4/audit.4 161875 2006-09-02 11:55:38Z rwatson $
25.\" $FreeBSD: head/share/man/man4/audit.4 162871 2006-09-30 15:14:49Z ru $
26.\"
27.Dd May 5, 2006
28.Os
29.Dt AUDIT 4
30.Sh NAME
31.Nm audit
32.Nd Security Event Audit
33.Sh SYNOPSIS
34.Cd "options AUDIT"
35.Sh DESCRIPTION
36Security Event Audit is a facility to provide fine-grained, configurable
37logging of security-relevant events, and is intended to meet the requirements
38of the Common Criteria (CC) Common Access Protection Profile (CAPP)
39evaluation.
40The
41.Fx
26.\"
27.Dd May 5, 2006
28.Os
29.Dt AUDIT 4
30.Sh NAME
31.Nm audit
32.Nd Security Event Audit
33.Sh SYNOPSIS
34.Cd "options AUDIT"
35.Sh DESCRIPTION
36Security Event Audit is a facility to provide fine-grained, configurable
37logging of security-relevant events, and is intended to meet the requirements
38of the Common Criteria (CC) Common Access Protection Profile (CAPP)
39evaluation.
40The
41.Fx
42audit facility implements the de facto industry standard BSM API, file
42.Nm
43facility implements the de facto industry standard BSM API, file
43formats, and command line interface, first found in the Solaris operating
44system.
45Information on the user space implementation can be found in
46.Xr libbsm 3 .
47.Pp
48Audit support is enabled at boot, if present in the kernel, using an
49.Xr rc.conf 5
50flag.
51The audit daemon,
52.Xr auditd 8 ,
44formats, and command line interface, first found in the Solaris operating
45system.
46Information on the user space implementation can be found in
47.Xr libbsm 3 .
48.Pp
49Audit support is enabled at boot, if present in the kernel, using an
50.Xr rc.conf 5
51flag.
52The audit daemon,
53.Xr auditd 8 ,
53is responsible for configuring the kernel to perform audit, pushing
54is responsible for configuring the kernel to perform
55.Nm ,
56pushing
54configuration data from the various audit configuration files into the
55kernel.
56.Ss Audit Special Device
57configuration data from the various audit configuration files into the
58kernel.
59.Ss Audit Special Device
57The kernel audit facility provides a special device,
60The kernel
61.Nm
62facility provides a special device,
58.Pa /dev/audit ,
59which is used by
60.Xr auditd 8
63.Pa /dev/audit ,
64which is used by
65.Xr auditd 8
61to monitor for audit events, such as requests to cycle the log, low disk
66to monitor for
67.Nm
68events, such as requests to cycle the log, low disk
62space conditions, and requests to terminate auditing.
63This device is not intended for use by applications.
64.Ss Audit Pipe Special Devices
65Audit pipe special devices, discussed in
66.Xr auditpipe 4 ,
67provide a configurable live tracking mechanism to allow applications to
68tee the audit trail, as well as to configure custom preselection paramaters
69to track users and events in a fine-grained manner.

--- 6 unchanged lines hidden (view full) ---

76.Xr getaudit 2 ,
77.Xr getauid 2 ,
78.Xr poll 2 ,
79.Xr select 2 ,
80.Xr setaudit 2 ,
81.Xr setauid 2 ,
82.Xr libbsm 3 ,
83.Xr auditpipe 4 ,
69space conditions, and requests to terminate auditing.
70This device is not intended for use by applications.
71.Ss Audit Pipe Special Devices
72Audit pipe special devices, discussed in
73.Xr auditpipe 4 ,
74provide a configurable live tracking mechanism to allow applications to
75tee the audit trail, as well as to configure custom preselection paramaters
76to track users and events in a fine-grained manner.

--- 6 unchanged lines hidden (view full) ---

83.Xr getaudit 2 ,
84.Xr getauid 2 ,
85.Xr poll 2 ,
86.Xr select 2 ,
87.Xr setaudit 2 ,
88.Xr setauid 2 ,
89.Xr libbsm 3 ,
90.Xr auditpipe 4 ,
84.Xr audit.log 5 ,
85.Xr audit_class 5 ,
86.Xr audit_control 5 ,
87.Xr audit_event 5 ,
91.Xr audit_class 5 ,
92.Xr audit_control 5 ,
93.Xr audit_event 5 ,
94.Xr audit.log 5 ,
88.Xr audit_user 5 ,
89.Xr audit_warn 5 ,
90.Xr rc.conf 5 ,
91.Xr audit 8 ,
92.Xr auditd 8
95.Xr audit_user 5 ,
96.Xr audit_warn 5 ,
97.Xr rc.conf 5 ,
98.Xr audit 8 ,
99.Xr auditd 8
100.Sh HISTORY
101The
102.Tn OpenBSM
103implementation was created by McAfee Research, the security
104division of McAfee Inc., under contract to Apple Computer Inc.\& in 2004.
105It was subsequently adopted by the TrustedBSD Project as the foundation for
106the OpenBSM distribution.
107.Pp
108Support for kernel
109.Nm
110first appeared in
111.Fx 6.2 .
93.Sh AUTHORS
112.Sh AUTHORS
113.An -nosplit
94This software was created by McAfee Research, the security research division
95of McAfee, Inc., under contract to Apple Computer Inc.
114This software was created by McAfee Research, the security research division
115of McAfee, Inc., under contract to Apple Computer Inc.
96Additional authors include Wayne Salamon, Robert Watson, and SPARTA Inc.
116Additional authors include
117.An Wayne Salamon ,
118.An Robert Watson ,
119and SPARTA Inc.
97.Pp
98The Basic Security Module (BSM) interface to audit records and audit event
99stream format were defined by Sun Microsystems.
100.Pp
101This manual page was written by
102.An Robert Watson Aq rwatson@FreeBSD.org .
120.Pp
121The Basic Security Module (BSM) interface to audit records and audit event
122stream format were defined by Sun Microsystems.
123.Pp
124This manual page was written by
125.An Robert Watson Aq rwatson@FreeBSD.org .
103.Sh HISTORY
104The OpenBSM implementation was created by McAfee Research, the security
105division of McAfee Inc., under contract to Apple Computer Inc. in 2004.
106It was subsequently adopted by the TrustedBSD Project as the foundation for
107the OpenBSM distribution.
108.Pp
109Support for kernel audit first appeared in
110.Fx 6.2 .
111.Sh BUGS
126.Sh BUGS
112The audit facility in
127The
128.Nm
129facility in
113.Fx
114is considered experimental, and production deployment should occur only after
115careful consideration of the risks of deploying experimental software.
116.Pp
117The
118.Fx
119kernel does not fully validate that audit records submitted by user
120applications are syntactically valid BSM; as submission of records is limited
121to privileged processes, this is not a critical bug.
122.Pp
123Instrumentation of auditable events in the kernel is not complete, as some
124system calls do not generate audit records, or generate audit records with
125incomplete argument information.
126.Pp
127Mandatory Access Control (MAC) labels, as provided by the
128.Xr mac 4
129facility, are not audited as part of records involving MAC decisions.
130.Fx
131is considered experimental, and production deployment should occur only after
132careful consideration of the risks of deploying experimental software.
133.Pp
134The
135.Fx
136kernel does not fully validate that audit records submitted by user
137applications are syntactically valid BSM; as submission of records is limited
138to privileged processes, this is not a critical bug.
139.Pp
140Instrumentation of auditable events in the kernel is not complete, as some
141system calls do not generate audit records, or generate audit records with
142incomplete argument information.
143.Pp
144Mandatory Access Control (MAC) labels, as provided by the
145.Xr mac 4
146facility, are not audited as part of records involving MAC decisions.