diff options
author | mh <mh@immerda.ch> | 2012-11-27 15:24:33 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-11-27 15:24:33 +0100 |
commit | 147a5ed602ef8084596ec715a08c6b05557e39ab (patch) | |
tree | 1e569830bc8c9fc522e2dae52990394c58b6dfe4 /manifests/centos.pp | |
parent | 726cd714994141080a9169eba97ede5828bb63c2 (diff) |
make logdirs httpd_log_t
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp index 7f8ba94..7afb69d 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -29,13 +29,17 @@ class apache::centos inherits apache::package { } if $::selinux != 'false' { + Selinux::Fcontext{ + before => File[web_dir], + } selinux::fcontext{ - ['/var/www/vhosts/.+/www(/.*)?', - '/var/www/vhosts/.+/non_public(/.*)?', - '/var/www/vhosts/.+/g2data(/.*)?', - '/var/www/vhosts/.+/upload(/.*)?' ]: - setype => 'httpd_sys_script_rw_t', - before => File[web_dir]; + [ '/var/www/vhosts/.+/www(/.*)?', + '/var/www/vhosts/.+/non_public(/.*)?', + '/var/www/vhosts/.+/g2data(/.*)?', + '/var/www/vhosts/.+/upload(/.*)?' ]: + setype => 'httpd_sys_script_rw_t'; + '/var/www/vhosts/.*/logs(/.*)?': + setpye => 'httpd_log_t'; } } file{'apache_service_config': |