Class: Ardecy::Harden::Sysctl::Kernel::KExecLoadDisabled

Inherits:
SysKern
  • Object
show all
Defined in:
lib/ardecy/harden/sysctl/kernel.rb

Instance Method Summary collapse

Methods inherited from SysKern

#fix, #repair, #scan, #x

Methods included from Display

#display_fix_list, #kernel_show, #perm_show, #result, #show_bad_mod, #title

Constructor Details

#initialize(args) ⇒ KExecLoadDisabled

Returns a new instance of KExecLoadDisabled.



102
103
104
105
106
107
# File 'lib/ardecy/harden/sysctl/kernel.rb', line 102

def initialize(args)
  @file = '/proc/sys/kernel/kexec_load_disabled'
  @line = 'kernel.kexec_load_disabled'
  super
  @exp = '1'
end