Skip to content

Commit

Permalink
linux: get_parent_pid: Fix parent ID to correctly mimic getppid() sys…
Browse files Browse the repository at this point in the history
…call behavior by using TGID instead of PID
  • Loading branch information
gcmoreira committed Dec 18, 2024
1 parent 197d245 commit d934d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def get_parent_pid(self) -> int:
"""

if self.real_parent and self.real_parent.is_readable():
ppid = self.real_parent.pid
ppid = self.real_parent.tgid
else:
ppid = 0

Expand Down

0 comments on commit d934d44

Please sign in to comment.