Project

General

Profile

Actions

Bug #2892

closed

Parse the rule files alphabetically

Added by Shivani Bhardwaj over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
low
Label:
Beginner, Outreachy

Description

Currently when we run suricta-update with -v option, we see a lot of files being parsed,

21/3/2019 -- 12:47:55 - <Debug> -- Parsing sslblacklist.rules.
21/3/2019 -- 12:47:55 - <Debug> -- Parsing rules/emerging-mobile_malware.rules.
21/3/2019 -- 12:47:56 - <Debug> -- Parsing rules/botcc.rules.
21/3/2019 -- 12:47:56 - <Debug> -- Parsing rules/botcc.portgrouped.rules.

Change the parser to load these files in alphabetical order by sorting the filenames before starting to work on them.

Actions

Also available in: Atom PDF