Skip to content

Commit 7516346

Browse files
committed
Adjust framework versioning
1 parent 89ed65c commit 7516346

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

volatility3/framework/plugins/linux/mountinfo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
5050
requirements.PluginRequirement(
5151
name="pslist", plugin=pslist.PsList, version=(2, 0, 0)
5252
),
53+
requirements.VersionRequirement(
54+
name="linuxutils", component=linux.LinuxUtilities, version=(2, 1, 0)
55+
),
5356
requirements.ListRequirement(
5457
name="pids",
5558
description="Filter on specific process IDs.",
@@ -86,7 +89,7 @@ def get_mountinfo(
8689
if not mnt_root:
8790
return None
8891

89-
path_root = linux.LinuxUtilities._get_path_mnt(task, mnt)
92+
path_root = linux.LinuxUtilities.get_path_mnt(task, mnt)
9093
if not path_root:
9194
return None
9295

volatility3/framework/symbols/linux/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, *args, **kwargs) -> None:
5555
class LinuxUtilities(interfaces.configuration.VersionableInterface):
5656
"""Class with multiple useful linux functions."""
5757

58-
_version = (2, 0, 0)
58+
_version = (2, 1, 0)
5959
_required_framework_version = (2, 0, 0)
6060

6161
framework.require_interface_version(*_required_framework_version)
@@ -79,7 +79,7 @@ def _get_path_file(cls, task, filp) -> str:
7979
return cls.do_get_path(rdentry, rmnt, dentry, vfsmnt)
8080

8181
@classmethod
82-
def _get_path_mnt(cls, task, mnt) -> str:
82+
def get_path_mnt(cls, task, mnt) -> str:
8383
"""Returns the mount point pathname relative to the task's root directory.
8484
8585
Args:

0 commit comments

Comments
 (0)