Class: Ardecy::Harden::Sysctl::Kernel::BpfDisabled

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

Returns a new instance of BpfDisabled.



66
67
68
69
70
71
72
# File 'lib/ardecy/harden/sysctl/kernel.rb', line 66

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