From 6094ea451f4adf18c36bbef5cdb580aaf9b21542 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 21 Feb 2012 15:57:30 +0100 Subject: use correct selinux type --- manifests/centos.pp | 2 +- manifests/defaultphpdirs.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/centos.pp b/manifests/centos.pp index 0c3ee45..721bb55 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -34,7 +34,7 @@ class apache::centos inherits apache::package { '/var/www/vhosts/.+/non_public(/.*)?', '/var/www/vhosts/.+/g2data(/.*)?', '/var/www/vhosts/.+/upload(/.*)?' ]: - setype => 'httpd_sys_rw_content_t', + setype => 'httpd_sys_script_rw_t', before => File[web_dir]; } } diff --git a/manifests/defaultphpdirs.pp b/manifests/defaultphpdirs.pp index e8b3e4e..93f7f1f 100644 --- a/manifests/defaultphpdirs.pp +++ b/manifests/defaultphpdirs.pp @@ -14,7 +14,7 @@ class apache::defaultphpdirs { selinux::fcontext{ ['/var/www/upload_tmp_dir/.+(/.*)?', '/var/www/session.save_path/.+(/.*)?']: - setype => 'httpd_sys_rw_content_t', + setype => 'httpd_sys_script_rw_t', before => File['/var/www/upload_tmp_dir','/var/www/session.save_path']; } } -- cgit v1.2.3