setaudit(8)

setaudit8

Specify audit configurations on a process

Usage

setaudit [-46U] [-a auid] [-m mask] [-s source] [-p port] command ...

Overview

setaudit is a tool to specify audit configurations on a process.

The following options are available:

-4

Use IPv4.

-6

Use IPv6.

-U

Update audit session state rather than overwriting it. By default, setaudit will overwrite the entire audit session state using the specified parameters. If -U is specified, only the parameters given on the command line will be updated, leaving the rest unchanged.

-a auid

Audit user ID or user name.

-m mask

String representation of an audit mask.

-s source

IPv4 or IPv6 address of a Terminal ID.

-p port

Port of a Terminal ID.

Examples

Enable all exe related audit events performed by command and its child processes:

# setaudit -m ex command

Releases

Unchanged in 2 releases since FreeBSD 15.1-RELEASE.

  1. 15.1–16.0

History

The setaudit utility was written by Christian S.J. Peron ⟨[email protected]⟩.

Authors

This manual page was written by Mateusz Piotrowski ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.