mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Plugins: remove exe_file dereference()
This commit is contained in:
@@ -61,7 +61,7 @@ class ProcessSpoofing(plugins.PluginInterface):
|
||||
try:
|
||||
mm = task.mm
|
||||
if not mm or not mm.is_readable():
|
||||
# Kernel threads doesn't have mm
|
||||
# Kernel threads don't have mm struct
|
||||
return None
|
||||
|
||||
exe_file = mm.exe_file
|
||||
@@ -69,7 +69,7 @@ class ProcessSpoofing(plugins.PluginInterface):
|
||||
if not exe_file or not exe_file.is_readable():
|
||||
return None
|
||||
|
||||
exe_inode = exe_file.dereference().f_path.dentry.d_inode
|
||||
exe_inode = exe_file.f_path.dentry.d_inode
|
||||
exe_path = linux.LinuxUtilities.path_for_file(self.context, task, exe_file)
|
||||
|
||||
# If the inode link count is 0, the process image has been deleted
|
||||
|
||||
Reference in New Issue
Block a user