Sha256: 2b0c85af09eaa61ede0f8dc8a236eafdceba3d02bb3822ce4c7a5802a38bf1d3

Contents?: true

Size: 380 Bytes

Versions: 47

Compression:

Stored size: 380 Bytes

Contents

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

    def enforcing?(with_policy)
      @runner.check_selinux_has_mode('enforcing', with_policy)
    end

    def permissive?(with_policy)
      @runner.check_selinux_has_mode('permissive', with_policy)
    end

    def to_s
      'SELinux'
    end
  end
end

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
serverspec-2.25.0 lib/serverspec/type/selinux.rb
serverspec-2.24.3 lib/serverspec/type/selinux.rb
serverspec-2.24.2 lib/serverspec/type/selinux.rb
serverspec-2.24.1 lib/serverspec/type/selinux.rb
serverspec-2.24.0 lib/serverspec/type/selinux.rb
serverspec-2.23.1 lib/serverspec/type/selinux.rb
serverspec-2.23.0 lib/serverspec/type/selinux.rb