From 1837c6b8f92fcb8696576e6d411135f32cb2e97c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 6 Aug 2024 22:01:13 +0100 Subject: [PATCH] Tag configuration items with a type --- volatility3/framework/interfaces/context.py | 1 + volatility3/framework/interfaces/layers.py | 1 + volatility3/framework/interfaces/symbols.py | 1 + 3 files changed, 3 insertions(+) diff --git a/volatility3/framework/interfaces/context.py b/volatility3/framework/interfaces/context.py index a95f2b464..d981f6426 100644 --- a/volatility3/framework/interfaces/context.py +++ b/volatility3/framework/interfaces/context.py @@ -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[ diff --git a/volatility3/framework/interfaces/layers.py b/volatility3/framework/interfaces/layers.py index e2a68780a..725495276 100644 --- a/volatility3/framework/interfaces/layers.py +++ b/volatility3/framework/interfaces/layers.py @@ -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 diff --git a/volatility3/framework/interfaces/symbols.py b/volatility3/framework/interfaces/symbols.py index b645f5cd1..5afaadde7 100644 --- a/volatility3/framework/interfaces/symbols.py +++ b/volatility3/framework/interfaces/symbols.py @@ -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