diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-01-27 10:03:05 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-01-27 10:03:05 +1100 |
commit | b27fccd4345d80ff826cfbdad1d409d712923e4b (patch) | |
tree | 5ede3109f97030b1909a4e434f84f1637dfd18fc /lib/puppet | |
parent | 15d43608593e3abeae52e773db352950b6ca7655 (diff) | |
download | puppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.tar.gz puppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.tar.xz puppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.zip |
Fixed #1852 - Correct behaviour when no SELinux bindings
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/type/file/selcontext.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/type/file/selcontext.rb b/lib/puppet/type/file/selcontext.rb index 22e3080b1..990035005 100644 --- a/lib/puppet/type/file/selcontext.rb +++ b/lib/puppet/type/file/selcontext.rb @@ -44,6 +44,14 @@ module Puppet return property_default end + def insync?(value) + if not selinux_support? + debug("SELinux bindings not found. Ignoring parameter.") + return true + end + super + end + def sync self.set_selinux_context(@resource[:path], @should, name) return :file_changed |