From 5450624a423267ca26a038e3e56ff2ea169913d6 Mon Sep 17 00:00:00 2001 From: Owain Jones <owanes@noc.ac.uk> Date: Fri, 15 Apr 2016 10:10:38 +0000 Subject: [PATCH] added selinux rules for gliders dirs --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index faac1e3..bc33617 100755 --- a/install.sh +++ b/install.sh @@ -173,3 +173,14 @@ echo '::1 dev.gliders.localhost gliders.localhost' >> /etc/hosts # cd - # cp hhvm.service /etc/systemd/system/ # systemctl enable hhvm + +# Create gliders dirs and allow the webserver to read/write to them +# (Mostly this sets up SELinux rules) +mkdir -p /var/gliders/www_dev /var/gliders/www /var/gliders/incoming /var/gliders/logs /var/gliders/static /var/gliders/daemon/logs +chown -R gliders /var/gliders +setsebool -P httpd_can_network_connect 1 +chcon -R -t httpd_sys_rw_content_t /var/gliders/www +chcon -R -t httpd_sys_rw_content_t /var/gliders/www_dev +chcon -R -t httpd_sys_rw_content_t /var/gliders/incoming +chcon -R -t httpd_sys_rw_content_t /var/gliders/static +chcon -R -t httpd_sys_content_t /var/gliders/logs -- GitLab