Class: Facts::Linux::Os::Selinux::Enabled

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/linux/os/selinux/enabled.rb

Constant Summary collapse

FACT_NAME =
'os.selinux.enabled'
ALIASES =
'selinux'

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



11
12
13
14
15
16
# File 'lib/facter/facts/linux/os/selinux/enabled.rb', line 11

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

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