summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
diff options
context:
space:
mode:
authorSean E. Millichamp <sean@bruenor.org>2008-10-13 16:48:40 -0400
committerJames Turnbull <james@lovedthanlost.net>2008-10-17 08:17:46 +1100
commitdedf0cdce952e36bcdccfc88b1efc33d9f5eaddb (patch)
tree537c0b4392ddf34c0dfc2495e47646ff0318b774 /lib/puppet/util
parent7f5ded185269cabeb7921c4f4739e1f66a34d54d (diff)
downloadpuppet-dedf0cdce952e36bcdccfc88b1efc33d9f5eaddb.tar.gz
puppet-dedf0cdce952e36bcdccfc88b1efc33d9f5eaddb.tar.xz
puppet-dedf0cdce952e36bcdccfc88b1efc33d9f5eaddb.zip
Setting SELinux contexts with chcon should not dereference symbolic links
Diffstat (limited to 'lib/puppet/util')
-rw-r--r--lib/puppet/util/selinux.rb4
1 files changed, 2 insertions, 2 deletions
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