Class: Ardecy::Harden::Sysctl::Kernel::PerfEventParanoid

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) ⇒ PerfEventParanoid

Returns a new instance of PerfEventParanoid.



136
137
138
139
140
141
# File 'lib/ardecy/harden/sysctl/kernel.rb', line 136

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