From e1b1157e3515657763b3e89f0c52235107e1899d Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 9 Mar 2013 19:03:05 +0100 Subject: fix fcontexts to be better --- manifests/centos.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'manifests/centos.pp') diff --git a/manifests/centos.pp b/manifests/centos.pp index e1a116f..930bbdd 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -33,12 +33,12 @@ class apache::centos inherits apache::package { before => File[web_dir], } selinux::fcontext{ - [ '/var/www/vhosts/.+/www(/.*)?', - '/var/www/vhosts/.+/non_public(/.*)?', - '/var/www/vhosts/.+/g2data(/.*)?', - '/var/www/vhosts/.+/upload(/.*)?' ]: + [ '/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(/.*)?': + '/var/www/vhosts/[^/]*/logs(/.*)?': setype => 'httpd_log_t'; } } -- cgit v1.2.3