mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 09:47:38 +02:00
linux: vmcoreinfo layer: Use the version class accessor instead of the internal class member
This commit is contained in:
@@ -226,12 +226,12 @@ class LinuxIntelVMCOREINFOStacker(interfaces.automagic.StackerLayerInterface):
|
||||
# Check VMCOREINFO API version
|
||||
vmcoreinfo_version_required = (1, 0, 0)
|
||||
if not requirements.VersionRequirement.matches_required(
|
||||
vmcoreinfo_version_required, linux.VMCoreInfo._version
|
||||
vmcoreinfo_version_required, linux.VMCoreInfo.version
|
||||
):
|
||||
vollog.info(
|
||||
"VMCOREINFO version not suitable: required %s found %s",
|
||||
vmcoreinfo_version_required,
|
||||
linux.VMCoreInfo._version,
|
||||
linux.VMCoreInfo.version,
|
||||
)
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user