audit2allow
Generate SELinux policy allow rules from audit logs. tldr-pages
On Linux
Linux
Generate SELinux policy allow rules from audit logs. Part of the policycoreutils-python-utils package.
Generate allow rules from recent audit denials and display them
sudo audit2allow --allIdentifyGenerate allow rules from a specific audit log file
sudo audit2allow --input path/to/audit.logIdentifyGenerate a policy module from recent audit denials
sudo audit2allow --all --module module_nameIdentifyExplain why SELinux denials occurred (same as audit2why)
sudo audit2allow --all --whyIdentifyDisplay detailed information around generated messages
sudo audit2allow --all --explainIdentifyUse installed macros to generate a reference policy
sudo audit2allow --all --referenceIdentifyGenerate allow rules for a specific service
sudo ausearch --message avc --comm service_name | audit2allow --module policy_nameIdentifyEnable verbose output mode
sudo audit2allow --all --verboseIdentify