mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Code Review: Get rid of 'kvo' in favor of kernel.offset
This commit is contained in:
@@ -322,11 +322,7 @@ class Modules(interfaces.plugins.PluginInterface):
|
||||
"""
|
||||
|
||||
kernel = context.modules[kernel_module_name]
|
||||
|
||||
kvo = context.layers[kernel.layer_name].config.get(
|
||||
"kernel_virtual_offset", None
|
||||
)
|
||||
if not kvo:
|
||||
if not kernel.offset:
|
||||
raise ValueError(
|
||||
"Intel layer does not have an associated kernel virtual offset, failing"
|
||||
)
|
||||
|
||||
@@ -228,11 +228,7 @@ class PsList(interfaces.plugins.PluginInterface, timeliner.TimeLinerInterface):
|
||||
|
||||
kernel = context.modules[kernel_module_name]
|
||||
|
||||
# We only use the object factory to demonstrate how to use one
|
||||
kvo = context.layers[kernel.layer_name].config.get(
|
||||
"kernel_virtual_offset", None
|
||||
)
|
||||
if not kvo:
|
||||
if not kernel.offset:
|
||||
raise ValueError(
|
||||
"Intel layer does not have an associated kernel virtual offset, failing"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user