Adjust framework versioning

This commit is contained in:
Gustavo Moreira
2023-05-10 10:55:19 +02:00
parent 89ed65cc56
commit 7516346b64
2 changed files with 6 additions and 3 deletions
@@ -50,6 +50,9 @@ class MountInfo(plugins.PluginInterface):
requirements.PluginRequirement(
name="pslist", plugin=pslist.PsList, version=(2, 0, 0)
),
requirements.VersionRequirement(
name="linuxutils", component=linux.LinuxUtilities, version=(2, 1, 0)
),
requirements.ListRequirement(
name="pids",
description="Filter on specific process IDs.",
@@ -86,7 +89,7 @@ class MountInfo(plugins.PluginInterface):
if not mnt_root:
return None
path_root = linux.LinuxUtilities._get_path_mnt(task, mnt)
path_root = linux.LinuxUtilities.get_path_mnt(task, mnt)
if not path_root:
return None
@@ -55,7 +55,7 @@ class LinuxKernelIntermedSymbols(intermed.IntermediateSymbolTable):
class LinuxUtilities(interfaces.configuration.VersionableInterface):
"""Class with multiple useful linux functions."""
_version = (2, 0, 0)
_version = (2, 1, 0)
_required_framework_version = (2, 0, 0)
framework.require_interface_version(*_required_framework_version)
@@ -79,7 +79,7 @@ class LinuxUtilities(interfaces.configuration.VersionableInterface):
return cls.do_get_path(rdentry, rmnt, dentry, vfsmnt)
@classmethod
def _get_path_mnt(cls, task, mnt) -> str:
def get_path_mnt(cls, task, mnt) -> str:
"""Returns the mount point pathname relative to the task's root directory.
Args: