Class: Specinfra::Command::Redhat::V8::SelinuxModule

Inherits:
Base::SelinuxModule show all
Defined in:
lib/specinfra/command/redhat/v8/selinux_module.rb

Class Method Summary collapse

Methods inherited from Base::SelinuxModule

create

Methods inherited from Base

create, escape

Class Method Details

.check_is_enabled(name) ⇒ Object



7
8
9
# File 'lib/specinfra/command/redhat/v8/selinux_module.rb', line 7

def check_is_enabled(name)
  "semodule -l | grep $'^#{escape(name)}'"
end

.check_is_installed(name, version = nil) ⇒ Object



3
4
5
# File 'lib/specinfra/command/redhat/v8/selinux_module.rb', line 3

def check_is_installed(name, version=nil)
  "semodule -l | grep $'^#{escape(name)}'"
end