Update order of arguments

This commit is contained in:
Andrew Case
2020-03-12 19:47:15 +00:00
committed by ikelos
parent 722700d2dc
commit 7d6d74bc91
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -215,8 +215,8 @@ class MacUtilities(object):
@classmethod
def files_descriptors_for_process(cls,
symbol_table_name : str,
context: interfaces.context.ContextInterface,
symbol_table_name : str,
task: interfaces.objects.ObjectInterface):
"""Creates a generator for the file descriptors of a process
+1 -1
View File
@@ -30,7 +30,7 @@ class lsof(plugins.PluginInterface):
for task in tasks:
pid = task.p_pid
for _, filepath, fd in mac.MacUtilities.files_descriptors_for_process(self.config['darwin'], self.context, task):
for _, filepath, fd in mac.MacUtilities.files_descriptors_for_process(self.context, self.config['darwin'], task):
if filepath and len(filepath) > 0:
yield (0, (pid, fd, filepath))
+1 -1
View File
@@ -53,7 +53,7 @@ class Netstat(plugins.PluginInterface):
task_name = utility.array_to_string(task.p_comm)
pid = task.p_pid
for filp, _, _ in mac.MacUtilities.files_descriptors_for_process(darwin_symbols, context, task):
for filp, _, _ in mac.MacUtilities.files_descriptors_for_process(context, darwin_symbols, task):
try:
ftype = filp.f_fglob.get_fg_type()
except exceptions.InvalidAddressException: