From 8b53bf81d8976449506a60fc62a54811c42977c4 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 29 Apr 2018 13:54:27 +0200 Subject: [PATCH] adds grep c[Fheck --- manifests/selinux/config.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/selinux/config.pp b/manifests/selinux/config.pp index a8a5649..eb9d4ad 100644 --- a/manifests/selinux/config.pp +++ b/manifests/selinux/config.pp @@ -41,6 +41,7 @@ class cd_nagios::selinux::config ( exec { 'create_policy_taccgi': command => template($ng_taccgi_erb), path => ['/usr/bin','/usr/sbin'], + user => $ng_user, cwd => $ng_user_home, creates => "${ng_user_home}/my-taccgi.pp", notify => Exec['semodule_taccgi'], @@ -49,6 +50,7 @@ class cd_nagios::selinux::config ( exec { 'semodule_taccgi': command => "semodule -i ${ng_user_home}/my-taccgi.pp", path => ['/usr/bin','/usr/sbin'], + cwd => $ng_user_home, require => Exec['create_policy_taccgi'], refreshonly => true, @@ -116,6 +118,7 @@ class cd_nagios::selinux::config ( exec { 'create_policy_statusdat': command => template($ng_statdat_erb), path => ['/usr/bin','/usr/sbin'], + user => $ng_user, cwd => $ng_user_home, creates => "${ng_user_home}/my-http.pp", notify => Exec['semodule_statusdat'], @@ -124,6 +127,7 @@ class cd_nagios::selinux::config ( exec { 'semodule_statusdat': command => "semodule -i ${ng_user_home}/my-httpd.pp", path => ['/usr/bin','/usr/sbin'], + user => $ng_user, cwd => $ng_user_home, require => Exec['create_policy_statusdat'], refreshonly => true, @@ -135,6 +139,7 @@ class cd_nagios::selinux::config ( exec { 'create_policy_grep': command => template($ng_grep_erb), path => ['/usr/bin','/usr/sbin'], + user => $ng_user, cwd => $ng_user_home, creates => "${ng_user_home}/my-grep.pp", notify => Exec['semodule_statusdat'], @@ -143,6 +148,7 @@ class cd_nagios::selinux::config ( exec { 'semodule_grep': command => "semodule -i ${ng_user_home}/my-grep.pp", path => ['/usr/bin','/usr/sbin'], + user => $ng_user, cwd => $ng_user_home, require => Exec['create_policy_grep'], refreshonly => true,