From 2859d7a641bee72f976e2e16b6dfec61bac107ce Mon Sep 17 00:00:00 2001 From: Gustavo Moreira Date: Mon, 7 Oct 2024 18:49:38 +1100 Subject: [PATCH] Linux: lsof plugin: Fix list_fds() return typing --- volatility3/framework/plugins/linux/lsof.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/plugins/linux/lsof.py b/volatility3/framework/plugins/linux/lsof.py index 8c3c4a299..075f2db84 100644 --- a/volatility3/framework/plugins/linux/lsof.py +++ b/volatility3/framework/plugins/linux/lsof.py @@ -4,7 +4,7 @@ import logging import datetime import dataclasses -from typing import List, Callable, Tuple +from typing import List, Callable, Tuple, Iterable from volatility3.framework import renderers, interfaces, constants from volatility3.framework.configuration import requirements @@ -140,7 +140,7 @@ class Lsof(plugins.PluginInterface, timeliner.TimeLinerInterface): context: interfaces.context.ContextInterface, vmlinux_module_name: str, filter_func: Callable[[int], bool] = lambda _: False, - ) -> FDInternal: + ) -> Iterable[FDInternal]: """Enumerates open file descriptors in tasks Args: