Mac - convert socket gathering to class method and clean up associated code

This commit is contained in:
Andrew Case
2020-03-12 19:47:15 +00:00
committed by ikelos
parent 640afdda2c
commit 7b21e83b07
4 changed files with 59 additions and 39 deletions
+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, self.context, task):
for _, filepath, fd in mac.MacUtilities.files_descriptors_for_process(self.config['darwin'], self.context, task):
if filepath and len(filepath) > 0:
yield (0, (pid, fd, filepath))