xref: /illumos-gate/usr/src/man/man8/auditd.8 (revision b210e77709da8e42dfe621e10ccf4be504206058)
te
Copyright (c) 2017 Peter Tribble
Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
AUDITD 8 "Mar 6, 2017"
NAME
auditd - audit daemon
SYNOPSIS

/usr/sbin/auditd
DESCRIPTION

The audit daemon, auditd, controls the generation and location of audit trail files and the generation of syslog messages based on its configuration, stored in smf(7) and managed using the auditconfig(8) command.

audit(8) is used to control auditd. It can cause auditd to:

close the current audit file and open a new one;

close the current audit file, reread its configuration and open a new audit file;

close the audit trail and terminate auditing.

"Auditing Conditions"

The audit daemon invokes the program audit_warn(8) under the following conditions with the indicated options: audit_warn soft pathname

The file system upon which pathname resides has exceeded the minimum free space limit defined by the p_minfree attribute of the audit_binfile plugin. A new audit trail has been opened on another file system.

audit_warn allsoft

All available file systems have been filled beyond the minimum free space limit. A new audit trail has been opened anyway.

audit_warn hard pathname

The file system upon which pathname resides has filled or for some reason become unavailable. A new audit trail has been opened on another file system.

audit_warn allhard count

All available file systems have been filled or for some reason become unavailable. The audit daemon will repeat this call to audit_warn at intervals of at least twenty seconds until space becomes available. count is the number of times that audit_warn has been called since the problem arose.

audit_warn tmpfile

There was a problem creating a symlink from /var/run/.audit.log to the current audit log file.

audit_warn nostart

There was an internal error starting auditing.

audit_warn auditoff

The internal system audit condition has been changed to not be AUC_AUDITING by someone other than the audit daemon. This causes the audit daemon to exit.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
SEE ALSO

auditon (2), audit.log (5), attributes (7), audit_binfile (7), audit (8), audit_warn (8), auditconfig (8), praudit (8)

NOTES

If the audit policy perzone is set, auditd runs in each zone, starting automatically when the local zone boots. If a zone is running when the perzone policy is set, auditing must be started manually in local zones. It is not necessary to reboot the system or the local zone to start auditing in a local zone. auditd can be started with "/usr/sbin/audit -s" and will start automatically with future boots of the zone.

When auditd runs in a local zone, the configuration is taken from the local zone's /etc/security directory's files: audit_class, and audit_event.

Configuration changes do not affect audit sessions that are currently running, as the changes do not modify a process's preselection mask. To change the preselection mask on a running process, use the -setpmask option of the auditconfig command (see auditconfig(8)). If the user logs out and logs back in, the new configuration changes will be reflected in the next audit session.

The auditd service is managed by the service management facility, smf(7), under the service identifier:

svc:/system/auditd

The service's status can be queried using the svcs(1) command. While administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8), the audit(8) command is the preferred administrative interface.