SELinux Notes
From Simson Garfinkel
Jump to navigationJump to search
References:
- https://wiki.centos.org/HowTos/SELinux
- https://wiki.gentoo.org/wiki/SELinux/Tutorials/What_is_this_unconfined_thingie_and_tell_me_about_attributes
Running a web server:
If you can't run PHP, you may have the files in the wrong SELinux security context. You can change the security
- Use ls -lZ /var/www/html/xxx to check the security context
- You can give the web server read/write access to the files with:
chcon -R -t httpd_sys_rw_content_t /var/www/html/xxx
Disabling SELinux
- edit /etc/selinux/config and change SELINUX from 'enforcing' to 'permissive'