diff --git a/volatility/framework/layers/intel.py b/volatility/framework/layers/intel.py index cd3bff86d..691dfa0ad 100644 --- a/volatility/framework/layers/intel.py +++ b/volatility/framework/layers/intel.py @@ -7,6 +7,7 @@ Created on 7 May 2013 import math import struct +import volatility.framework.configuration as configuration from volatility.framework import interfaces, exceptions @@ -124,6 +125,12 @@ class Intel(interfaces.layers.TranslationLayerInterface): # TODO: Add in the whole buffalo return [self._base_layer] + @classmethod + def get_schema(cls): + return [configuration.TranslationLayerRequirement(name = 'memory_layer', optional = False), + configuration.TranslationLayerRequirement(name = 'swap_layer', optional = True), + configuration.IntRequirement(name = 'page_map_offset', optional = False)] + class IntelPAE(Intel): """Class for handling Physical Address Extensions for Intel architectures""" diff --git a/volatility/framework/layers/physical.py b/volatility/framework/layers/physical.py index 7a84fb351..bae3322d0 100644 --- a/volatility/framework/layers/physical.py +++ b/volatility/framework/layers/physical.py @@ -6,7 +6,7 @@ Created on 6 May 2013 import os.path -from volatility.framework import interfaces, exceptions +from volatility.framework import interfaces, exceptions, configuration class BufferDataLayer(interfaces.layers.DataLayerInterface): @@ -97,3 +97,7 @@ class FileLayer(interfaces.layers.DataLayerInterface): def destroy(self): """Closes the file handle""" self._file.close() + + @classmethod + def get_schema(cls): + return [configuration.StringRequirement(name = 'filename', optional = False)]