summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-02-21 15:57:30 +0100
committermh <mh@immerda.ch>2012-02-21 15:57:30 +0100
commit6094ea451f4adf18c36bbef5cdb580aaf9b21542 (patch)
treef546eaca5a9c6da442137cb2ce747c133ead8e8a
parent873216d9a86b6dacf34b8f4508f3978859bc84b8 (diff)
use correct selinux type
-rw-r--r--manifests/centos.pp2
-rw-r--r--manifests/defaultphpdirs.pp2
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'];
}
}