lib/garcon/chef/chef_helpers.rb
# Returns true if the current node has selinux enabled, otherwise false.
#
# @return [Boolean]
#
# @api public
Returns true if the current node has selinux enabled, otherwise false.
Returns true if the current node has selinux enabled otherwise false .
def selinux?
      if installed?('getenforce')
        Mixlib::ShellOut.new('getenforce').run_command.stdout != "Disabled\n"
      else
        false
      end
    end
def selinux? if installed? ( 'getenforce' ) Mixlib :: ShellOut . new ( 'getenforce' ) . run_command . stdout != "Disabled\n" else false end end
Returns true if the current node has selinux enabled, otherwise false.
Returns true if the current node has selinux enabled otherwise false .
None
Boolean
api
None