Linux: Update linux.vmayarascan to use task.mm.get_vma_iter() which means it will work on linux kernels 6.1 and above

This commit is contained in:
Eve
2023-05-12 13:37:15 +01:00
parent 09b0c8e406
commit cd03c52fd3
@@ -96,7 +96,7 @@ class VmaYaraScan(interfaces.plugins.PluginInterface):
An iterable of tuples containing start and end addresses for each descriptor
"""
if task.mm:
for vma in task.mm.get_mmap_iter():
for vma in task.mm.get_vma_iter():
vm_size = vma.vm_end - vma.vm_start
yield (vma.vm_start, vm_size)