From bab6dff342ef3288f647edf3bc59580a1fdcc8c4 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 19 Apr 2014 14:04:32 +0200 Subject: the default selinux type should be unconfined --- manifests/plugin/deploy.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp index 2cee966..6a8d052 100644 --- a/manifests/plugin/deploy.pp +++ b/manifests/plugin/deploy.pp @@ -3,7 +3,7 @@ define munin::plugin::deploy( $ensure = 'present', $source = '', $config = '', - $seltype = 'munin_exec_t', + $seltype = 'munin_unconfined_exec_t', $register = true, ) { $plugin_src = $ensure ? { @@ -24,7 +24,7 @@ define munin::plugin::deploy( mode => '0755'; } - if (str2bool($::selinux) == true) and (($::operatingsystem != 'CentOS') or ($::operatingsystem == 'CentOS' and $::lsbmajdistrelease != '5')){ + if (str2bool($::selinux) == true) and (($::operatingsystem != 'CentOS') or ($::operatingsystem == 'CentOS' and $::lsbmajdistrelease > '5')){ File["munin_plugin_${name}"]{ seltype => $seltype, } -- cgit v1.2.3