From ac0f1a2cd07c35de8db5b1e0250025b7c30977e2 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 7 Nov 2018 22:12:57 +0000 Subject: [PATCH] Fix up a remaining typo, and two typing questions. --- volatility/framework/automagic/linux.py | 6 ++---- volatility/framework/symbols/__init__.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/volatility/framework/automagic/linux.py b/volatility/framework/automagic/linux.py index 059930d56..a202f3f4f 100644 --- a/volatility/framework/automagic/linux.py +++ b/volatility/framework/automagic/linux.py @@ -295,13 +295,11 @@ class LinuxUtilities(object): return ret - # IKELOS: 'task' will always be a task_struct as defined in the profile json. Do I type this in the parameter list? If so, how? - # IKELOS: what should the type of 'config' be? @classmethod def files_descriptors_for_process(cls, - config, + config: interfaces.configuration.HierarchicalDict, context: interfaces.context.ContextInterface, - task): + task: interfaces.objects.ObjectInterface): fd_table = task.files.get_fds() if fd_table == 0: diff --git a/volatility/framework/symbols/__init__.py b/volatility/framework/symbols/__init__.py index c6b665522..00f5bca15 100644 --- a/volatility/framework/symbols/__init__.py +++ b/volatility/framework/symbols/__init__.py @@ -5,7 +5,7 @@ import logging import typing from volatility.framework import constants, exceptions, interfaces, objects, validity -from volatility.framework.symbols import native, windows, linux +from volatility.framework.symbols import native, windows, linux, utility vollog = logging.getLogger(__name__)