Sha256: a21e073caad0d80ac4939fe55cba1cb516afcb2f5a106fb6c3ec5fd5af9b753f

Contents?: true

Size: 358 Bytes

Versions: 15

Compression:

Stored size: 358 Bytes

Contents

module Serverspec
  module Type
    class Selinux < Base
      def disabled?
        backend.check_selinux(nil, 'disabled')
      end

      def enforcing?
        backend.check_selinux(nil, 'enforcing')
      end

      def permissive?
        backend.check_selinux(nil, 'permissive')
      end

      def to_s
        'SELinux'
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/type/selinux.rb
serverspec-0.5.2 lib/serverspec/type/selinux.rb
serverspec-0.5.1 lib/serverspec/type/selinux.rb
serverspec-0.5.0 lib/serverspec/type/selinux.rb
serverspec-0.4.14 lib/serverspec/type/selinux.rb
serverspec-0.4.13 lib/serverspec/type/selinux.rb
serverspec-0.4.12 lib/serverspec/type/selinux.rb
serverspec-0.4.11 lib/serverspec/type/selinux.rb
serverspec-0.4.10 lib/serverspec/type/selinux.rb
serverspec-0.4.9 lib/serverspec/type/selinux.rb
serverspec-0.4.8 lib/serverspec/type/selinux.rb
serverspec-0.4.7 lib/serverspec/type/selinux.rb
serverspec-0.4.6 lib/serverspec/type/selinux.rb
serverspec-0.4.5 lib/serverspec/type/selinux.rb
serverspec-0.4.4 lib/serverspec/type/selinux.rb