Skip to content

Commit

Permalink
remove taints_value overload attr
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss-W4tcher committed Nov 8, 2024
1 parent b209ea3 commit 485ef89
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _module_flags_taints_pre_4_10_rc1(self) -> str:
"""
taints_string = ""
for char, taint_flag in linux_constants.TAINT_FLAGS.items():
if taint_flag.module and self.taints_value & taint_flag.shift:
if taint_flag.module and self.taints & taint_flag.shift:
taints_string += char

return taints_string
Expand All @@ -310,7 +310,7 @@ def _module_flags_taints_post_4_10_rc1(self) -> str:
for i, taint_flag in enumerate(self.taint_flags_list):
c_true = chr(taint_flag.c_true)
c_false = chr(taint_flag.c_false)
if taint_flag.module and (self.taints_value & (1 << i)):
if taint_flag.module and (self.taints & (1 << i)):
taints_string += c_true
elif taint_flag.module and c_false != " ":
taints_string += c_false
Expand Down Expand Up @@ -378,10 +378,6 @@ def section_strtab(self):
return self.strtab
raise AttributeError("module -> strtab: Unable to get strtab")

@property
def taints_value(self) -> int:
return self.taints

@property
def taint_flags_list(self) -> Optional[List[interfaces.objects.ObjectInterface]]:
kernel = linux.LinuxUtilities.get_module_from_volobj_type(self._context, self)
Expand Down

0 comments on commit 485ef89

Please sign in to comment.