summaryrefslogtreecommitdiffstats
path: root/peekaboo/config.py
diff options
context:
space:
mode:
authorMichael Weiser <michael.weiser@gmx.de>2019-02-14 18:01:33 +0000
committerMichael Weiser <michael.weiser@gmx.de>2019-02-14 19:03:57 +0000
commitf07dcf6dd41eee3ead3ad2bad7131a11edb5d183 (patch)
tree8fedcf02e2933ca937306eb7c5f2f57d35f2ff7d /peekaboo/config.py
parent80b4ca07d12e27c919c3091ee625f401edb6994e (diff)
Make processing info directory configurable
Allow configuration of the path where processing info for failed and bad samples will be dumped. Having it be statically $HOME/malware_reports was inflexible.
Diffstat (limited to 'peekaboo/config.py')
-rw-r--r--peekaboo/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/peekaboo/config.py b/peekaboo/config.py
index f921846..9867b12 100644
--- a/peekaboo/config.py
+++ b/peekaboo/config.py
@@ -82,6 +82,7 @@ class PeekabooConfig(object): # pylint: disable=too-many-instance-attributes
self.job_hash_regex = '/amavis/tmp/([^/]+)/parts/'
self.use_debug_module = False
self.keep_mail_data = False
+ self.processing_info_dir = '/var/lib/peekaboo/malware_reports'
self.db_url = 'sqlite:////var/lib/peekaboo/peekaboo.db'
self.config_file = '/opt/peekaboo/etc/peekaboo.conf'
self.ruleset_config = '/opt/peekaboo/etc/ruleset.conf'
@@ -112,6 +113,7 @@ class PeekabooConfig(object): # pylint: disable=too-many-instance-attributes
'job_hash_regex': ['global', 'job_hash_regex'],
'use_debug_module': ['global', 'use_debug_module'],
'keep_mail_data': ['global', 'keep_mail_data'],
+ 'processing_info_dir': ['global', 'processing_info_dir'],
'db_url': ['db', 'url'],
'ruleset_config': ['ruleset', 'config'],
'cuckoo_mode': ['cuckoo', 'mode'],