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.38.0 lib/serverspec/type/selinux.rb
serverspec-2.37.2 lib/serverspec/type/selinux.rb
serverspec-2.37.1 lib/serverspec/type/selinux.rb
serverspec-2.37.0 lib/serverspec/type/selinux.rb
serverspec-2.36.1 lib/serverspec/type/selinux.rb
serverspec-2.36.0 lib/serverspec/type/selinux.rb
serverspec-2.35.0 lib/serverspec/type/selinux.rb
serverspec-2.34.0 lib/serverspec/type/selinux.rb
serverspec-2.33.0 lib/serverspec/type/selinux.rb
serverspec-2.32.0 lib/serverspec/type/selinux.rb
serverspec-2.31.1 lib/serverspec/type/selinux.rb
serverspec-2.31.0 lib/serverspec/type/selinux.rb
serverspec-2.30.1 lib/serverspec/type/selinux.rb
serverspec-2.30.0 lib/serverspec/type/selinux.rb
serverspec-2.29.2 lib/serverspec/type/selinux.rb
serverspec-2.29.1 lib/serverspec/type/selinux.rb
serverspec-2.29.0 lib/serverspec/type/selinux.rb
serverspec-2.28.0 lib/serverspec/type/selinux.rb
serverspec-2.27.0 lib/serverspec/type/selinux.rb
serverspec-2.26.0 lib/serverspec/type/selinux.rb