From 3b14f784e0ad4f7c49088ea6420380ac333c0377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 6 Oct 2010 22:47:45 +0300 Subject: [PATCH] Fixed SELinux contexts from mythweb data directory. --- mythtv/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mythtv/manifests/init.pp b/mythtv/manifests/init.pp index 01d864f..076931a 100644 --- a/mythtv/manifests/init.pp +++ b/mythtv/manifests/init.pp @@ -128,6 +128,13 @@ class mythtv::mythweb { require => Package["mythweb"], } + if $selinux { + selinux::manage_fcontext { "/usr/share/mythweb/data(/.*)?": + type => "httpd_sys_rw_content_t", + before => File["/usr/share/mythweb/data"], + } + } + file { "/usr/share/mythweb/data": ensure => directory, mode => 0770,