The autoconfig command provides a command line interface to get and set audit configuration parameters. See the auditconfig(1M) man page. Some of the options to auditconfig are:
Check the configuration of kernel audit event to class mappings and report any inconsistencies.
Reconfigure kernel event to class mappings at runtime to match the current mappings in the audit_event file.
Retrieve the machine-auditing condition. Table 2-7 shows the possible responses.
Table 2-7 Possible Auditing Conditions
Response |
Meaning |
---|---|
auditing |
Auditing is enabled and turned on. |
no audit |
Auditing is enabled but turned off. |
disabled |
The audit module is not enabled. |
Get the preselection classes to which the specified event is mapped.
Set the preselection classes to which the specified event is mapped.
Display the currently configured (runtime) kernel and user audit event information.
Get the audit ID, preselection mask, terminal ID, and audit session ID of the specified process.
Set the preselection mask of all processes with the specified audit session ID.
Set the preselection mask of all processes with the specified user audit ID.
Display the list of audit policies with a short description of each one.
Set the audit policy flags to the specified policies (see "Setting Audit Policies").