From dedf0cdce952e36bcdccfc88b1efc33d9f5eaddb Mon Sep 17 00:00:00 2001 From: "Sean E. Millichamp" Date: Mon, 13 Oct 2008 16:48:40 -0400 Subject: Setting SELinux contexts with chcon should not dereference symbolic links --- lib/puppet/util/selinux.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/puppet/util/selinux.rb b/lib/puppet/util/selinux.rb index 8c1aecf3b..d91a6943a 100644 --- a/lib/puppet/util/selinux.rb +++ b/lib/puppet/util/selinux.rb @@ -106,8 +106,8 @@ module Puppet::Util::SELinux flag = "" end - Puppet.debug "Running chcon #{flag} #{value} #{file}" - retval = system("chcon #{flag} #{value} #{file}") + Puppet.debug "Running chcon -h #{flag} #{value} #{file}" + retval = system("chcon -h #{flag} #{value} #{file}") unless retval error = Puppet::Error.new("failed to chcon %s" % [@resource[:path]]) raise error -- cgit