Chapter 3. Troubleshooting issues related to SELinux


For diagnosing issues related to SELinux, you can check the file /var/log/audit/audit.log, as follows:

  1. To query Audit logs, use the ausearch tool. SELinux decisions, such as allowing or disallowing access, are cached in the Access Vector Cache (AVC). Therefore, you should use the AVC and USER_AVC values for the message type parameter, for example:

    # ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts boot
  2. If there are no matches, check if the Audit daemon is running.
  3. If it is not running, perform the following steps:

    1. Restart the audit.
    2. Re-run the denied scenario.
    3. Check the Audit log again.

    For more information about solving SELinux-related issues, see Troubleshooting problems related to SELinux.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top