From c27cf52ba923d9490e3a928ac17e95982cffffc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 6 Oct 2010 12:37:44 +0300 Subject: [PATCH] Fixed SELinux file context checking on RHEL hosts. --- selinux/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux/manifests/init.pp b/selinux/manifests/init.pp index cecaab2..658842c 100644 --- a/selinux/manifests/init.pp +++ b/selinux/manifests/init.pp @@ -109,7 +109,7 @@ define selinux::manage_fcontext($type) { exec { "semanage fcontext -a -t '${type}' '${name}' && restorecon -R `echo '${name}' | sed -e 's/(.*$//'`": path => "/bin:/usr/bin:/sbin:/usr/sbin", - unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//'` | egrep -q ':${type}:'", + unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//'` | egrep -q ':${type}(:s[0-9]*)?$'", } }