Skip to content

Commit f13ad12

Browse files
committed
Update the expiry dates of various functions to at least a year's notice
1 parent 46c508f commit f13ad12

File tree

5 files changed

+39
-30
lines changed

5 files changed

+39
-30
lines changed

volatility3/framework/plugins/linux/lsmod.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"""A module containing a plugin that lists loaded kernel modules."""
55

66
import logging
7-
from typing import List, Iterable
7+
from typing import Iterable, List
88

99
import volatility3.framework.symbols.linux.utilities.modules as linux_utilities_modules
10-
from volatility3.framework import interfaces, deprecation
10+
from volatility3.framework import deprecation, interfaces
1111
from volatility3.framework.configuration import requirements
1212
from volatility3.framework.interfaces import plugins
1313

@@ -38,7 +38,7 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
3838
@deprecation.deprecated_method(
3939
replacement=linux_utilities_modules.Modules.list_modules,
4040
replacement_version=(3, 0, 0),
41-
removal_date="2025-09-25",
41+
removal_date="2026-03-25",
4242
)
4343
def list_modules(
4444
cls, context: interfaces.context.ContextInterface, vmlinux_module_name: str

volatility3/framework/plugins/linux/malware/check_modules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
#
44

55
import logging
6-
from typing import List, Dict, Generator
6+
from typing import Dict, Generator, List
77

88
import volatility3.framework.symbols.linux.utilities.modules as linux_utilities_modules
9-
from volatility3.framework import interfaces, deprecation
9+
from volatility3.framework import deprecation, interfaces
1010
from volatility3.framework.configuration import requirements
11+
from volatility3.framework.interfaces import plugins
1112
from volatility3.framework.objects import utility
1213
from volatility3.framework.symbols.linux import extensions
13-
from volatility3.framework.interfaces import plugins
1414

1515
vollog = logging.getLogger(__name__)
1616

@@ -61,7 +61,7 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
6161
@classmethod
6262
@deprecation.deprecated_method(
6363
replacement=linux_utilities_modules.Modules.get_kset_modules,
64-
removal_date="2025-09-25",
64+
removal_date="2026-03-25",
6565
replacement_version=(3, 0, 0),
6666
)
6767
def get_kset_modules(

volatility3/framework/plugins/linux/malware/hidden_modules.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
33
#
44
import logging
5-
from typing import List, Set, Tuple, Iterable
5+
from typing import Iterable, List, Set, Tuple
6+
7+
from volatility3.framework import deprecation, exceptions, interfaces
8+
from volatility3.framework.configuration import requirements
9+
from volatility3.framework.interfaces import plugins
10+
from volatility3.framework.symbols.linux import extensions
611
from volatility3.framework.symbols.linux.utilities import (
712
modules as linux_utilities_modules,
813
)
9-
from volatility3.framework import interfaces, exceptions, deprecation
10-
from volatility3.framework.configuration import requirements
11-
from volatility3.framework.symbols.linux import extensions
12-
from volatility3.framework.interfaces import plugins
1314

1415
vollog = logging.getLogger(__name__)
1516

@@ -103,7 +104,7 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
103104
@staticmethod
104105
@deprecation.deprecated_method(
105106
replacement=linux_utilities_modules.Modules.get_modules_memory_boundaries,
106-
removal_date="2025-09-25",
107+
removal_date="2026-03-25",
107108
replacement_version=(3, 0, 0),
108109
)
109110
def get_modules_memory_boundaries(
@@ -116,7 +117,7 @@ def get_modules_memory_boundaries(
116117

117118
@deprecation.deprecated_method(
118119
replacement=linux_utilities_modules.Modules.get_module_address_alignment,
119-
removal_date="2025-09-25",
120+
removal_date="2026-03-25",
120121
replacement_version=(3, 0, 0),
121122
)
122123
@classmethod
@@ -144,13 +145,13 @@ def _get_module_address_alignment(
144145

145146
@deprecation.deprecated_method(
146147
replacement=linux_utilities_modules.Modules.get_hidden_modules,
147-
removal_date="2025-09-25",
148+
removal_date="2026-03-25",
148149
replacement_version=(3, 0, 0),
149150
)
150151
@staticmethod
151152
@deprecation.deprecated_method(
152153
replacement=linux_utilities_modules.Modules.validate_alignment_patterns,
153-
removal_date="2025-09-25",
154+
removal_date="2026-03-25",
154155
replacement_version=(3, 0, 0),
155156
)
156157
def _validate_alignment_patterns(

volatility3/framework/plugins/linux/malware/modxview.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
33
#
44
import logging
5-
from typing import List, Dict, Iterator
5+
from typing import Dict, Iterator, List
66

77
import volatility3.framework.symbols.linux.utilities.modules as linux_utilities_modules
8-
9-
from volatility3.framework import interfaces, deprecation, renderers
8+
from volatility3.framework import deprecation, interfaces, renderers
109
from volatility3.framework.configuration import requirements
10+
from volatility3.framework.constants import architectures
1111
from volatility3.framework.renderers import format_hints
1212
from volatility3.framework.symbols.linux import extensions
13-
from volatility3.framework.constants import architectures
1413
from volatility3.framework.symbols.linux.utilities import tainting
1514

1615
vollog = logging.getLogger(__name__)
@@ -66,7 +65,7 @@ def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]
6665
@deprecation.deprecated_method(
6766
replacement=linux_utilities_modules.Modules.flatten_run_modules_results,
6867
replacement_version=(3, 0, 0),
69-
removal_date="2025-09-25",
68+
removal_date="2026-03-25",
7069
)
7170
def flatten_run_modules_results(
7271
cls, run_results: Dict[str, List[extensions.module]], deduplicate: bool = True
@@ -89,7 +88,7 @@ def flatten_run_modules_results(
8988
@deprecation.deprecated_method(
9089
replacement=linux_utilities_modules.Modules.run_modules_scanners,
9190
replacement_version=(3, 0, 0),
92-
removal_date="2025-09-25",
91+
removal_date="2026-03-25",
9392
)
9493
def run_modules_scanners(
9594
cls,

volatility3/framework/plugins/linux/malware/netfilter.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# This file is Copyright 2024 Volatility Foundation and licensed under the Volatility Software License 1.0
22
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
33
#
4-
from dataclasses import dataclass, field
5-
from abc import ABC, abstractmethod
64
import logging
5+
from abc import ABC, abstractmethod
6+
from dataclasses import dataclass, field
7+
from typing import Iterator, List, Optional, Tuple
78

89
import volatility3.framework.symbols.linux.utilities.modules as linux_utilities_modules
9-
from typing import Iterator, List, Tuple, Optional
1010
from volatility3 import framework
1111
from volatility3.framework import (
1212
constants,
13+
deprecation,
14+
exceptions,
1315
interfaces,
1416
renderers,
15-
exceptions,
16-
deprecation,
1717
)
18-
from volatility3.framework.renderers import format_hints
1918
from volatility3.framework.configuration import requirements
19+
from volatility3.framework.renderers import format_hints
2020
from volatility3.framework.symbols.linux import network
2121

2222
vollog = logging.getLogger(__name__)
@@ -223,7 +223,16 @@ def _run(self) -> Iterator[Tuple[int, str, str, int, int, str, bool]]:
223223
)
224224
hooked = module_info is None
225225

226-
yield netns, proto_name, hook_name, priority, hook_ops_hook, module_info, symbol_name, hooked
226+
yield (
227+
netns,
228+
proto_name,
229+
hook_name,
230+
priority,
231+
hook_ops_hook,
232+
module_info,
233+
symbol_name,
234+
hooked,
235+
)
227236

228237
@classmethod
229238
@abstractmethod
@@ -304,7 +313,7 @@ def subscribed_protocols(self) -> Tuple[str]:
304313
return ("IPV4", "ARP", "BRIDGE", "IPV6", "DECNET")
305314

306315
@deprecation.method_being_removed(
307-
removal_date="2025-09-25",
316+
removal_date="2026-03-25",
308317
message="Callers to this method should adapt `linux_utilities_modules.Modules.run_module_scanners`",
309318
)
310319
def get_module_name_for_address(self, addr) -> str:

0 commit comments

Comments
 (0)