Thank you so much, creating an semodule solved my problems!Just to recap what I did for the benefit of others: 1) Set SELinux to permissive mode: # echo 0 >/selinux/enfor... [by lhiggs]
on 07/01/2012 – Made popular on 07/01/2012
I have installed git on Red Hat Enterprise 6 with AD group control and SSL Cert .
Everything works fine if I do setenforce 0 ( set SELinux in detection only mode ) or
if I do semanage permissive -a httpd_t (Set httpd_t in detection only mode)
I do not want to use this on my git production server.
I worked all night on creating an RHEL 7 template customized for our private cloud and almost had it ready. While doing the final part, enabling GDM, I made the blunder of disabling SELINUX. Now I am not able to re-enable or put into permissive mode again. Earlier, when this happened on RHEL 6 (maybe 2 years ago) I remember a restart cleared the issue but now it isn't.
I have files in my public_html directory on my server. I got all the permissions right and access through Apache was just fine. I then turned Selinux back to enforcing and now I now longer have permission to access these files with my browser.
I encountered a weird problem. When my seLinux is running as enforcing i am unable to run python scripts from the browser. Its displaying 500 internal server error.But when i enabled permissive mode for selinux its running successfully.
My Perl programs runs successfully in either mode.