File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
volatility3/framework/symbols/linux/extensions Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,18 @@ def section_typetab(self):
361361
362362 raise AttributeError ("Unable to get typetab section, it needs a kernel >= 5.2" )
363363
364- def get_symbol_type (self , symbol , symbol_index ):
364+ def get_symbol_type (
365+ self , symbol : interfaces .objects .ObjectInterface , symbol_index : int
366+ ) -> str :
367+ """Determines the type of a given ELF symbol.
368+
369+ Args:
370+ symbol: The ELF symbol object (elf_sym)
371+ symbol_index: The index of the symbol within the type table
372+
373+ Returns:
374+ A single-character string representing the symbol type
375+ """
365376 if self .has_member ("kallsyms" ) and self .kallsyms .has_member ("typetab" ):
366377 # kernels >= 5.2 1c7651f43777cdd59c1aaa82c87324d3e7438c7b types have its own array
367378 layer = self ._context .layers [self .vol .layer_name ]
You can’t perform that action at this time.
0 commit comments