CertGrid CertGrid
Troubleshooting·Red Hat Certified System Administrator

SELinux Denial Troubleshooting

Not a separate objective, and what the other five are really testing. An AVC record names the process type, the target type and the operation, and those three decide which of the three fixes applies. The guide opens with ausearch -m AVC returning nothing on a machine with sixteen denials in its audit log.

Security and SELinux Guide 60 of 67 Advanced

ausearch -m AVC found nothing on this machine while the denials were plainly in /var/log/audit/audit.log. --input-logs makes it read the on-disk logs and returns all of them. Since "run ausearch -m AVC" is the standard advice, an empty result reads as "no denial happened" - which is the worst possible wrong conclusion.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this because it is what the other five SELinux objectives are really testing. This matters because the search that should find a denial often returns nothing - and the suggested fix arrives with a trap attached.

Before you start

  1. The search that returns nothing

  2. The four fields

  3. The suggestion, and its trap

Official sources