ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Troubleshooting: ausearch, sealert

Lesson 4.48 minIntermediateDecember 1, 2026

Sign in to read this lesson

A service does not work and you suspect SELinux. In this lesson we learn how to find the evidence (AVC messages), how to turn it into plain language (sealert, audit2why) and how to choose the right fix. At the end we combine the whole unit into one diagnostic algorithm.

What you will learn

  • SELinux denials are written to /var/log/audit/audit.log as AVC messages: ausearch -m AVC -ts recent.
  • sealert -a /var/log/audit/audit.log (package setroubleshoot-server) explains the cause and suggests a fix.
  • audit2why tells the reason for an AVC: a wrong context, a disabled boolean, or no rule in the policy.
  • The order of fixes: restorecon / semanage fcontext → setsebool → semanage port → (last resort) a custom module.
  • Building a module with audit2allow -M is the last option — do not blindly turn every AVC into an allow.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.