From 8b95480e880445d88312f43cc17f695f88b5cd68 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 16 Jul 2017 22:59:01 +0100 Subject: [PATCH] Write the cached linuxbanners after each one so that cancellations don't require re-runs. --- volatility/framework/automagic/linux_symbol_cache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volatility/framework/automagic/linux_symbol_cache.py b/volatility/framework/automagic/linux_symbol_cache.py index e7484c7b2..3aad6dbe8 100644 --- a/volatility/framework/automagic/linux_symbol_cache.py +++ b/volatility/framework/automagic/linux_symbol_cache.py @@ -57,5 +57,6 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface): except KeyError: pass - with open(constants.LINUX_BANNERS_PATH, "wb") as f: - pickle.dump(linuxbanners, f) + # Rewrite the cached linuxbanners each run, since writing is faster than the cache validation portion + with open(constants.LINUX_BANNERS_PATH, "wb") as f: + pickle.dump(linuxbanners, f)