Sha256: 9749f459c07b4c68f03c2482e9886504e0fd828dfaaaad1848c6e5a0362f9f48
Contents?: true
Size: 649 Bytes
Versions: 8
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true module Facter module Resolvers module Linux class FipsEnabled < BaseResolver #:fips_enabled @fact_list ||= {} @log = Facter::Log.new(self) class << self private def post_resolve(fact_name) @fact_list.fetch(fact_name) { read_fips_file(fact_name) } end def read_fips_file(fact_name) file_output = Util::FileHelper.safe_read('/proc/sys/crypto/fips_enabled') @fact_list[:fips_enabled] = file_output.strip == '1' @fact_list[fact_name] end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems