summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-03-09 19:03:05 +0100
committermh <mh@immerda.ch>2013-03-09 19:03:05 +0100
commite1b1157e3515657763b3e89f0c52235107e1899d (patch)
tree2b0ca1d299e030bfd762bc753153b58593205825 /manifests
parent80c3e890becd31f704f3409094d6da1c137b844e (diff)
fix fcontexts to be better
Diffstat (limited to 'manifests')
-rw-r--r--manifests/centos.pp10
1 files changed, 5 insertions, 5 deletions
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';
}
}