aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_for_rule_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2015-07-03 22:25:20 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2015-07-03 22:25:20 -0400
commit168d9e3a981e7bbf9d54aa2dd8c1aed4d904238c (patch)
tree1b7d9834f2b226ec95c1e4fe901294066b9974ce /config/snort/snort_check_for_rule_updates.php
parent129844406855b3406d9d220df776a3e12ffc55da (diff)
downloadpfsense-packages-168d9e3a981e7bbf9d54aa2dd8c1aed4d904238c.tar.gz
pfsense-packages-168d9e3a981e7bbf9d54aa2dd8c1aed4d904238c.tar.bz2
pfsense-packages-168d9e3a981e7bbf9d54aa2dd8c1aed4d904238c.zip
Add new feature to hide deprecated rules categories in GUI.
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 19930f27..0c4543cd 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -682,6 +682,12 @@ if ($emergingthreats == 'on') {
}
}
+// If removing deprecated rules categories, then do it
+if ($config['installedpackages']['snortglobal']['hide_deprecated_rules'] == "on") {
+ log_error(gettext("[Snort] Hide Deprecated Rules is enabled. Removing obsoleted rules categories."));
+ snort_remove_dead_rules();
+}
+
function snort_apply_customizations($snortcfg, $if_real) {
global $vrt_enabled, $rebuild_rules;