From 160cfa35b88321f58e94fba7269f24260da52a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 3 Nov 2010 10:15:34 +0200 Subject: [PATCH] Fixed mythtv selinux contexts on fedora 12 and older. --- mythtv/manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mythtv/manifests/init.pp b/mythtv/manifests/init.pp index d4399eb..5970fe2 100644 --- a/mythtv/manifests/init.pp +++ b/mythtv/manifests/init.pp @@ -139,8 +139,15 @@ class mythtv::mythweb { } if $selinux { + if $operatingsystem == "Fedora" { + if $operatingsystemrelease < 13 { + $context = "httpd_sys_content_rw_t" + } else { + $context = "httpd_sys_rw_content_t" + } + } selinux::manage_fcontext { "/usr/share/mythweb/data(/.*)?": - type => "httpd_sys_rw_content_t", + type => $context, before => File["/usr/share/mythweb/data"], } }