Skip to content

Commit 5a046ea

Browse files
authored
Merge pull request #1590 from volatilityfoundation/mnt_parent_missing
Add mnt_parent check to kernel version validation
2 parents 75b55c3 + 1132bd9 commit 5a046ea

File tree

1 file changed

+3
-1
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+3
-1
lines changed

volatility3/framework/symbols/linux/extensions/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,9 @@ def _is_kernel_prior_to_struct_mount(self) -> bool:
15741574
'True' if the kernel lacks the 'mount' struct, typically indicating kernel < 3.3.
15751575
"""
15761576

1577-
return not self._context.symbol_space.has_type("mount")
1577+
return (not self._context.symbol_space.has_type("mount")) and self.has_member(
1578+
"mnt_parent"
1579+
)
15781580

15791581
def is_equal(self, vfsmount_ptr) -> bool:
15801582
"""Helper to make sure it is comparing two pointers to 'vfsmount'.

0 commit comments

Comments
 (0)