diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 20:31:30 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 20:31:30 -0400 |
commit | afba4e722681c35163ec48b7cacffa8b8cb88e5f (patch) | |
tree | b0f50f4c1357081ac692f0197492320ea6ea5f76 /config/suricata/suricata_check_for_rule_updates.php | |
parent | e4e3ad354f0175ec6ed8e39c40ff2a5666856a8b (diff) | |
download | pfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.tar.gz pfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.tar.bz2 pfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.zip |
Add new feature to hide deprecated rules categories in GUI.
Diffstat (limited to 'config/suricata/suricata_check_for_rule_updates.php')
-rw-r--r-- | config/suricata/suricata_check_for_rule_updates.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/suricata/suricata_check_for_rule_updates.php b/config/suricata/suricata_check_for_rule_updates.php index 0fa4fb2d..9360d464 100644 --- a/config/suricata/suricata_check_for_rule_updates.php +++ b/config/suricata/suricata_check_for_rule_updates.php @@ -604,6 +604,12 @@ if ($snortcommunityrules == 'on') { } } +// If removing deprecated rules categories, then do it +if ($config['installedpackages']['suricata']['config'][0]['hide_deprecated_rules'] == "on") { + log_error(gettext("[Suricata] Hide Deprecated Rules is enabled. Removing obsoleted rules categories.")); + suricata_remove_dead_rules(); +} + function suricata_apply_customizations($suricatacfg, $if_real) { global $vrt_enabled, $rebuild_rules; |