Make sure we don't assume that the primary layer's config lives under our own.

This commit is contained in:
Mike Auty
2017-11-13 01:18:54 +00:00
parent 769e1226c4
commit a60fcba32f
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class PsList(interfaces_plugins.PluginInterface):
def list_tasks(self):
"""Lists all the tasks in the primary layer"""
layer_name = self.config['primary.memory_layer']
layer_name = self.context.memory[self.config['primary']].config['memory_layer']
_, aslr_shift = linux.LinuxUtilities.find_aslr(self.context, self.config["vmlinux"], layer_name)
vmlinux = self.context.module(self.config["vmlinux"], self.config["primary"], aslr_shift)