Sha256: b2ca1adafa3cfe926bf664bc308faeac12a8654f2ea1e32ccdd0ab3c39ba51bc

Contents?: true

Size: 469 Bytes

Versions: 63

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Os
      module Selinux
        class Enabled
          FACT_NAME = 'os.selinux.enabled'
          ALIASES = 'selinux'

          def call_the_resolver
            selinux = Facter::Resolvers::SELinux.resolve(:enabled)

            [Facter::ResolvedFact.new(FACT_NAME, selinux),
             Facter::ResolvedFact.new(ALIASES, selinux, :legacy)]
          end
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
facter-4.0.23 lib/facts/linux/os/selinux/enabled.rb
facter-4.0.22 lib/facts/linux/os/selinux/enabled.rb
facter-4.0.21 lib/facts/linux/os/selinux/enabled.rb