2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH AUDITD 1M "Apr 29, 2008"
12 \fB/usr/sbin/auditd\fR
18 The audit daemon, \fBauditd\fR, controls the generation and location of audit
19 trail files and the generation of syslog messages based on the definitions in
20 \fBaudit_control\fR(4). If auditing is enabled, \fBauditd\fR reads the
21 \fBaudit_control\fR file to do the following:
26 reads the path to a library module for realtime conversion of audit data into
33 reads other parameters specific to the selected plugin or plugins;
39 obtains a list of directories into which audit files can be written;
45 obtains the percentage limit for how much space to reserve on each filesystem
46 before changing to the next directory.
50 \fBaudit\fR(1M) is used to control \fBauditd\fR. It can cause \fBauditd\fR to:
55 close the current audit file and open a new one;
61 close the current audit file, re-read \fB/etc/security/audit_control\fR and
62 open a new audit file;
68 close the audit trail and terminate auditing.
70 .SS "Auditing Conditions"
73 The audit daemon invokes the program \fBaudit_warn\fR(1M) under the following
74 conditions with the indicated options:
78 \fB\fBaudit_warn soft\fR \fIpathname\fR\fR
82 The file system upon which \fIpathname\fR resides has exceeded the minimum free
83 space limit defined in \fBaudit_control\fR(4). A new audit trail has been
84 opened on another file system.
90 \fB\fBaudit_warn allsoft\fR\fR
94 All available file systems have been filled beyond the minimum free space
95 limit. A new audit trail has been opened anyway.
101 \fB\fBaudit_warn hard\fR \fIpathname\fR\fR
105 The file system upon which \fIpathname\fR resides has filled or for some reason
106 become unavailable. A new audit trail has been opened on another file system.
112 \fB\fBaudit_warn allhard\fR \fIcount\fR\fR
116 All available file systems have been filled or for some reason become
117 unavailable. The audit daemon will repeat this call to \fBaudit_warn\fR at
118 intervals of at least twenty seconds until space becomes available. \fIcount\fR
119 is the number of times that \fBaudit_warn\fR has been called since the problem
126 \fB\fBaudit_warn ebusy\fR\fR
130 There is already an audit daemon running.
136 \fB\fBaudit_warn tmpfile\fR\fR
140 The file \fB/etc/security/audit/audit_tmp\fR exists, indicating a fatal error.
146 \fB\fBaudit_warn nostart\fR\fR
150 The internal system audit condition is \fBAUC_FCHDONE\fR. Auditing cannot be
151 started without rebooting the system.
157 \fB\fBaudit_warn auditoff\fR\fR
161 The internal system audit condition has been changed to not be
162 \fBAUC_AUDITING\fR by someone other than the audit daemon. This causes the
163 audit daemon to exit.
169 \fB\fBaudit_warn postsigterm\fR\fR
173 An error occurred during the orderly shutdown of the auditing system.
179 \fB\fBaudit_warn getacdir\fR\fR
183 There is a problem getting the directory list from
184 \fB/etc/security/audit/audit_control\fR.
186 The audit daemon will hang in a sleep loop until this file is fixed.
192 \fB/etc/security/audit/audit_control\fR
196 See \fBattributes\fR(5) for descriptions of the following attributes:
204 ATTRIBUTE TYPE ATTRIBUTE VALUE
206 Interface Stability Committed
212 \fBaudit\fR(1M), \fBaudit_warn\fR(1M), \fBbsmconv\fR(1M), \fBpraudit\fR(1M),
213 \fBauditon\fR(2), \fBaudit.log\fR(4), \fBaudit_control\fR(4),
217 See the section on Solaris Auditing in \fISystem Administration Guide: Security
222 The functionality described in this man page is available only if the Solaris
223 Auditing feature has been enabled. See \fBbsmconv\fR(1M) for more information.
226 \fBauditd\fR is loaded in the global zone at boot time if auditing is enabled.
227 See \fBbsmconv\fR(1M).
230 If the audit policy \fBperzone\fR is set, \fBauditd\fR runs in each zone,
231 starting automatically when the local zone boots. If a zone is running when the
232 \fBperzone\fR policy is set, auditing must be started manually in local zones.
233 It is not necessary to reboot the system or the local zone to start auditing in
234 a local zone. \fBauditd\fR can be started with "\fB/usr/sbin/audit\fR \fB-s\fR"
235 and will start automatically with future boots of the zone.
238 When \fBauditd\fR runs in a local zone, the configuration is taken from the
239 local zone's \fB/etc/security\fR directory's files: \fBaudit_control\fR,
240 \fBaudit_class\fR, \fBaudit_user\fR, \fBaudit_startup\fR, and
244 Configuration changes do not affect audit sessions that are currently running,
245 as the changes do not modify a process's preselection mask. To change the
246 preselection mask on a running process, use the \fB-setpmask\fR option of the
247 \fBauditconfig\fR command (see \fBauditconfig\fR(1M)). If the user logs out and
248 logs back in, the new configuration changes will be reflected in the next audit