mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Tag configuration items with a type
This commit is contained in:
@@ -178,6 +178,7 @@ class ModuleInterface(interfaces.configuration.ConfigurableInterface):
|
||||
|
||||
config = super().build_configuration()
|
||||
|
||||
config["$type"] = "Module"
|
||||
config["offset"] = self.config["offset"]
|
||||
subconfigs = {
|
||||
"symbol_table_name": self.context.symbol_space[
|
||||
|
||||
@@ -391,6 +391,7 @@ class DataLayerInterface(
|
||||
|
||||
# Translation Layers are constructable, and therefore require a class configuration variable
|
||||
config["class"] = self.__class__.__module__ + "." + self.__class__.__name__
|
||||
config["$type"] = "TranslationLayer"
|
||||
return config
|
||||
|
||||
# ## Metadata methods
|
||||
|
||||
@@ -344,6 +344,7 @@ class SymbolTableInterface(
|
||||
|
||||
# Symbol Tables are constructable, and therefore require a class configuration variable
|
||||
config["class"] = self.__class__.__module__ + "." + self.__class__.__name__
|
||||
config["$type"] = "SymbolTable"
|
||||
return config
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user