mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
Rework the imports to make the intel layers easier to read.
This commit is contained in:
@@ -7,8 +7,8 @@ Created on 7 May 2013
|
||||
import math
|
||||
import struct
|
||||
|
||||
import volatility.framework.configuration.requirements
|
||||
from volatility.framework import interfaces, exceptions
|
||||
from volatility.framework import exceptions, interfaces
|
||||
from volatility.framework.configuration import requirements
|
||||
|
||||
|
||||
class Intel(interfaces.layers.TranslationLayerInterface):
|
||||
@@ -141,16 +141,16 @@ class Intel(interfaces.layers.TranslationLayerInterface):
|
||||
|
||||
@classmethod
|
||||
def get_requirements(cls):
|
||||
return [volatility.framework.configuration.requirements.TranslationLayerRequirement(name = 'memory_layer',
|
||||
constraints = {
|
||||
"type": "physical"},
|
||||
optional = False),
|
||||
volatility.framework.configuration.requirements.TranslationLayerRequirement(name = 'swap_layer',
|
||||
constraints = {
|
||||
"type": "physical"},
|
||||
optional = True),
|
||||
volatility.framework.configuration.requirements.IntRequirement(name = 'page_map_offset',
|
||||
optional = False)]
|
||||
return [requirements.TranslationLayerRequirement(name = 'memory_layer',
|
||||
constraints = {
|
||||
"type": "physical"},
|
||||
optional = False),
|
||||
requirements.TranslationLayerRequirement(name = 'swap_layer',
|
||||
constraints = {
|
||||
"type": "physical"},
|
||||
optional = True),
|
||||
requirements.IntRequirement(name = 'page_map_offset',
|
||||
optional = False)]
|
||||
|
||||
|
||||
class IntelPAE(Intel):
|
||||
|
||||
Reference in New Issue
Block a user