Creating Custom SELinux Policy Modules

Creating a SELinux policy makes much more sense than turning it off. 😛

Create the SELinux policy from the audit log with audit2allow:

grep -i php-fpm /var/log/audit/audit.log | audit2allow -M php-fpm

Load the SELinux policy:

semodule -i php-fpm.pp

Leave a Reply

Your email address will not be published. Required fields are marked *

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