Add kernel_modules method
parent
6d92c319f8
commit
499b0a857f
|
@ -18,6 +18,17 @@ module Kernel
|
|||
raise 'Could not determine kernel version'
|
||||
end
|
||||
|
||||
#
|
||||
# Returns the kernel modules
|
||||
#
|
||||
# @return [String]
|
||||
#
|
||||
def kernel_modules
|
||||
cmd_exec('cat /proc/modules').to_s
|
||||
rescue
|
||||
raise 'Could not determine kernel modules'
|
||||
end
|
||||
|
||||
#
|
||||
# Returns true if kernel and hardware supports Supervisor Mode Access Prevention (SMAP), false if not.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue