lib/chef/provider/file.rb
def do_selinux(recursive = false)
        if resource_updated? && Chef::Config[:enable_selinux_file_permission_fixup]
          if selinux_enabled?
            converge_by("restore selinux security context") do
              restore_security_context(@new_resource.path, recursive)
            end
          else
            Chef::Log.debug "selinux utilities can not be found. Skipping selinux permission fixup."
          end
        end
      end
# This logic ideally will be  made into some kind of generic
# platform-dependent post-converge hook for file-like
# resources, but for now we only have the single selinux use
# case.
This logic ideally will be  made into some kind of generic
platform-dependent post-converge hook for file-like
resources, but for now we only have the single selinux use
case.
This logic ideally will be made into some kind of generic platform - dependent post - converge hook for file - like resources but for now we only have the single selinux use case .
def do_selinux(recursive = false)
        if resource_updated? && Chef::Config[:enable_selinux_file_permission_fixup]
          if selinux_enabled?
            converge_by("restore selinux security context") do
              restore_security_context(@new_resource.path, recursive)
            end
          else
            Chef::Log.debug "selinux utilities can not be found. Skipping selinux permission fixup."
          end
        end
      end
def do_selinux ( recursive = false ) if resource_updated? && Chef :: Config [ :enable_selinux_file_permission_fixup ] if selinux_enabled? converge_by ( "restore selinux security context" ) do restore_security_context ( @new_resource . path , recursive ) end else Chef :: Log . debug "selinux utilities can not be found. Skipping selinux permission fixup." end end end
This logic ideally will be  made into some kind of generic
platform-dependent post-converge hook for file-like
resources, but for now we only have the single selinux use
case.
This logic ideally will be made into some kind of generic platform - dependent post - converge hook for file - like resources but for now we only have the single selinux use case .
recursive