Skip to content

Commit aab95ea

Browse files
committed
Add required interface version to plugin
1 parent 5cfd55e commit aab95ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

volatility3/framework/plugins/linux/module_extract.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
from typing import List
66

7+
from volatility3 import framework
78
import volatility3.framework.symbols.linux.utilities.module_extract as linux_utilities_module_extract
89
from volatility3.framework import interfaces, renderers
910
from volatility3.framework.configuration import requirements
@@ -16,9 +17,10 @@
1617
class ModuleExtract(interfaces.plugins.PluginInterface):
1718
"""Recreates an ELF file from a specific address in the kernel"""
1819

20+
_version = (1, 0, 0)
1921
_required_framework_version = (2, 0, 0)
2022

21-
_version = (1, 0, 0)
23+
framework.require_interface_version(*_required_framework_version)
2224

2325
@classmethod
2426
def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:

0 commit comments

Comments
 (0)