Wednesday, March 25, 2015

SElinux config to give apache some room....

chcon -R -h -t httpd_sys_script_exec_t /path/to/html

For SVN:
chcon -R -t httpd_sys_content_t grpm
chcon -R -t httpd_sys_content_t /var/www/svn/
chcon -R -t httpd_sys_rw_content_t /var/www/svn/


chcon is onluy for a session (won't survive reboot..)

semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/svn(/.*)?"

No comments: