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.42.3 lib/serverspec/type/selinux.rb
serverspec-2.42.2 lib/serverspec/type/selinux.rb
serverspec-2.42.1 lib/serverspec/type/selinux.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/type/selinux.rb
serverspec-2.42.0 lib/serverspec/type/selinux.rb
serverspec-2.41.8 lib/serverspec/type/selinux.rb
serverspec-2.41.7 lib/serverspec/type/selinux.rb
serverspec-2.41.6 lib/serverspec/type/selinux.rb
serverspec-2.41.5 lib/serverspec/type/selinux.rb
serverspec-2.41.4 lib/serverspec/type/selinux.rb
serverspec-ruby19-2.24.3 lib/serverspec/type/selinux.rb
serverspec-2.41.3 lib/serverspec/type/selinux.rb
serverspec-2.41.2 lib/serverspec/type/selinux.rb
serverspec-2.41.1 lib/serverspec/type/selinux.rb
serverspec-2.41.0 lib/serverspec/type/selinux.rb
serverspec-2.40.0 lib/serverspec/type/selinux.rb
serverspec-2.39.2 lib/serverspec/type/selinux.rb
serverspec-2.39.1 lib/serverspec/type/selinux.rb
serverspec-2.39.0 lib/serverspec/type/selinux.rb
serverspec-2.38.1 lib/serverspec/type/selinux.rb