Quick fix for selinux issues caused by un-tagged files

By | April 5, 2017

Sometimes weird things happen when selinux is activated and files are un-tagged or policies are missing. Because I do not want to apply the usual stupid Internet advice: “disable selinux” I am trying to fix it if possible.
Two simple steps to alleviate some of the “issues” caused by selinux.

STEP 1: Generate SELinux policy allow rules from logs of denied operations


tail /var/log/audit/audit.log | audit2allow -M test

STEP 2: Apply the policy allow rules


semodule -i test.pp

[paypal_donation_button]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.