commands

ausearch — Inspect audit denial records

Search authorized audit logs for selected message types. No matching records is not proof of no denial. Use a fresh private workspace; do not apply to a real system.

Formal Syntax & Structure

linux syntaxlinux
ausearch -m AVC,USER_AVC

Parameters & Attributes

NameTypeDescription
-moptionComma-separated message types

Return Value

exit status and output

Prints matching audit events; no matching records can produce nonzero status even without a malformed query. Review diagnostics, selected sources and time scope before inferring absence of an event.

Working Example

Example Snippetlinux
ausearch -m AVC,USER_AVC
Linux Reference