From dbae5d353db16bc468f695bca66d397a524f31dc Mon Sep 17 00:00:00 2001 From: Frank Gomulka Date: Tue, 22 Jun 2021 10:43:31 -0400 Subject: [PATCH] Create a list_head to fix tty_check bug This commit casts `tty_driver` to a `list_head` to fix an AttributeError in the linux tty_check plugin --- volatility3/framework/plugins/linux/tty_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/plugins/linux/tty_check.py b/volatility3/framework/plugins/linux/tty_check.py index fe35d8fa3..f633b9985 100644 --- a/volatility3/framework/plugins/linux/tty_check.py +++ b/volatility3/framework/plugins/linux/tty_check.py @@ -41,7 +41,7 @@ class tty_check(plugins.PluginInterface): self.config['vmlinux'], modules) try: - tty_drivers = vmlinux.object_from_symbol("tty_drivers") + tty_drivers = vmlinux.object_from_symbol("tty_drivers").cast("list_head") except exceptions.SymbolError: tty_drivers = None