Class: Serverspec::Type::Selinux
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::Selinux
show all
- Defined in:
- lib/serverspec/type/selinux.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#disabled? ⇒ Boolean
4
5
6
|
# File 'lib/serverspec/type/selinux.rb', line 4
def disabled?
backend.check_selinux('disabled')
end
|
#enforcing? ⇒ Boolean
8
9
10
|
# File 'lib/serverspec/type/selinux.rb', line 8
def enforcing?
backend.check_selinux('enforcing')
end
|
#permissive? ⇒ Boolean
12
13
14
|
# File 'lib/serverspec/type/selinux.rb', line 12
def permissive?
backend.check_selinux('permissive')
end
|
#to_s ⇒ Object
16
17
18
|
# File 'lib/serverspec/type/selinux.rb', line 16
def to_s
'SELinux'
end
|