From b27fccd4345d80ff826cfbdad1d409d712923e4b Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 27 Jan 2009 10:03:05 +1100 Subject: Fixed #1852 - Correct behaviour when no SELinux bindings --- lib/puppet/type/file/selcontext.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 -- cgit