Sha256: 25821491df84222ec166398786aa3557a996dcfa37cb9baf6562e874085c14bc

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

module Serverspec
  module Type
    class Selinux < Base
      def disabled?
        @runner.check_selinux_mode('disabled')
      end

      def enforcing?
        @runner.check_selinux_mode('enforcing')
      end

      def permissive?
        @runner.check_selinux_mode('permissive')
      end

      def to_s
        'SELinux'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta12 lib/serverspec/type/selinux.rb
serverspec-2.0.0.beta11 lib/serverspec/type/selinux.rb
serverspec-2.0.0.beta10 lib/serverspec/type/selinux.rb
serverspec-2.0.0.beta9 lib/serverspec/type/selinux.rb