]> git.ipfire.org Git - thirdparty/suricata.git/commit
ctl/filestore: Add check for filestore directory
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 13 Apr 2019 18:39:06 +0000 (00:09 +0530)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Sep 2019 17:12:38 +0000 (19:12 +0200)
commitba6b73cd106aaa7fd53e4f1867fe7ce44b3bc2c7
tree9c01deca3f5a3c4cde24acbde9f204cd672cfa96
parent52187d854862e1d95b70f29cf91d23cb8d0b1c9d
ctl/filestore: Add check for filestore directory

Up until now, suricatactl would delete any directory that is provided as
an argument on command line. This patch adds a basic test for the
directories `tmp`, `00` and `ff` in order to justify that the provided
directory is actually a filestore directory.

Additionally, some code has been broken up and made more readable and
pythonic.

Closes redmine ticket #2843
python/suricata/ctl/filestore.py