I have a Centos 7 server with nginx and PHP7 and have a Problem with SELINUX if the SESTATUS is Enforcing I cannot upload images but if the Status is permissive it works. I host Magento on that Server so to add product images I need to upload the images through the Admin Panel. So what is the reason that the Enforcing mode is blocking the Uploading.
Note
I can select the images and 'upload it' but the images is broken and if I check the product image folder nothing is there. After uploading I should see it also in the backend but there is only a broken tmp image.
So should I create a policy for the exceptions with audit2allow? Or is there any other Solutions available?