Merge pull request #1590 from volatilityfoundation/mnt_parent_missing

Add mnt_parent check to kernel version validation
This commit is contained in:
ikelos
2025-02-01 01:46:46 +00:00
committed by GitHub
@@ -1574,7 +1574,9 @@ class vfsmount(objects.StructType):
'True' if the kernel lacks the 'mount' struct, typically indicating kernel < 3.3.
"""
return not self._context.symbol_space.has_type("mount")
return (not self._context.symbol_space.has_type("mount")) and self.has_member(
"mnt_parent"
)
def is_equal(self, vfsmount_ptr) -> bool:
"""Helper to make sure it is comparing two pointers to 'vfsmount'.