class_subclasses is a function, soit's better import the volatility.framework to avoid people accidentally thinking it's defined here and then importing it from here.

This commit is contained in:
Gustavo Moreira
2024-06-09 21:33:59 +10:00
parent fefc6c4a4b
commit 0962f26382
@@ -6,8 +6,8 @@ from abc import ABC, abstractmethod
import logging
from typing import Iterator, List, Tuple
from volatility3 import framework
from volatility3.framework import (
class_subclasses,
constants,
interfaces,
renderers,
@@ -106,7 +106,7 @@ class AbstractNetfilter(ABC):
vmlinux = context.modules[kernel_module_name]
implementation_inst = None # type: ignore
for subclass in class_subclasses(cls):
for subclass in framework.class_subclasses(cls):
if not subclass.symtab_checks(vmlinux=vmlinux):
vollog.log(
constants.LOGLEVEL_VVVV,