Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit d1e3c41

Browse files
committed
Update pidhashtable for 4.18+
1 parent 73cc683 commit d1e3c41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

volatility/plugins/linux/pidhashtable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ def _walk_xarray_pids(self):
339339
yield node
340340

341341
def pid_namespace_idr(self):
342-
if self.addr_space.profile.obj_has_member("radix_tree_root", "rnode"):
342+
if not self.addr_space.profile.has_type("radix_tree_root"):
343+
func = self._walk_xarray_pids
344+
elif self.addr_space.profile.obj_has_member("radix_tree_root", "rnode"):
343345
func = self._walk_pid_ns_idr
344346
else:
345347
func = self._walk_xarray_pids

0 commit comments

Comments
 (0)