Sha256: 69169a984e1a14a3d6cd570ea9b1e694e0718a9bce780bfa5e4d590e519864c4

Contents?: true

Size: 328 Bytes

Versions: 38

Compression:

Stored size: 328 Bytes

Contents

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

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

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

    def to_s
      'SELinux'
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
serverspec-2.22.0 lib/serverspec/type/selinux.rb
serverspec-2.21.1 lib/serverspec/type/selinux.rb
serverspec-2.21.0 lib/serverspec/type/selinux.rb
serverspec-2.20.0 lib/serverspec/type/selinux.rb
serverspec-2.19.0 lib/serverspec/type/selinux.rb
serverspec-2.18.0 lib/serverspec/type/selinux.rb
serverspec-2.17.1 lib/serverspec/type/selinux.rb
serverspec-2.17.0 lib/serverspec/type/selinux.rb
serverspec-2.16.0 lib/serverspec/type/selinux.rb
serverspec-2.15.0 lib/serverspec/type/selinux.rb
serverspec-2.14.1 lib/serverspec/type/selinux.rb
serverspec-2.14.0 lib/serverspec/type/selinux.rb
serverspec-2.13.0 lib/serverspec/type/selinux.rb
serverspec-2.12.0 lib/serverspec/type/selinux.rb
serverspec-2.11.0 lib/serverspec/type/selinux.rb
serverspec-2.10.2 lib/serverspec/type/selinux.rb
serverspec-2.10.1 lib/serverspec/type/selinux.rb
serverspec-2.10.0 lib/serverspec/type/selinux.rb
serverspec-2.9.1 lib/serverspec/type/selinux.rb
serverspec-2.9.0 lib/serverspec/type/selinux.rb