Class: Ardecy::Harden::Sysctl::Kernel::KPointer
- Defined in:
- lib/ardecy/harden/sysctl/kernel.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ KPointer
constructor
A new instance of KPointer.
Methods inherited from SysKern
Methods included from Display
#display_fix_list, #kernel_show, #perm_show, #result, #show_bad_mod, #title
Constructor Details
#initialize(args) ⇒ KPointer
Returns a new instance of KPointer.
31 32 33 34 35 36 |
# File 'lib/ardecy/harden/sysctl/kernel.rb', line 31 def initialize(args) @file = '/proc/sys/kernel/kptr_restrict' @line = 'kernel.kptr_restrict' super @exp = '2' end |