Class: Serverspec::Type::Selinux

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/selinux.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#disabled?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/selinux.rb', line 4

def disabled?
  backend.check_selinux('disabled')
end

#enforcing?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/serverspec/type/selinux.rb', line 8

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

#permissive?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/serverspec/type/selinux.rb', line 12

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

#to_sObject



16
17
18
# File 'lib/serverspec/type/selinux.rb', line 16

def to_s
  'SELinux'
end