aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 14:50:22 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 14:50:22 -0400
commit1682d08e3e80b36c8d4cae1cab27b70bee4d557f (patch)
treed292396d751bd72092091c76ca47f9afa8644098 /config/snort/snort_alerts.php
parentdb4778c2478f525ebc24d351472c036187fd4a81 (diff)
downloadpfsense-packages-1682d08e3e80b36c8d4cae1cab27b70bee4d557f.tar.gz
pfsense-packages-1682d08e3e80b36c8d4cae1cab27b70bee4d557f.tar.bz2
pfsense-packages-1682d08e3e80b36c8d4cae1cab27b70bee4d557f.zip
Wrap calls to sync_snort_package_config() with conf_mount_rw().
Diffstat (limited to 'config/snort/snort_alerts.php')
-rwxr-xr-xconfig/snort/snort_alerts.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index e7559660..3f3159a6 100755
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -126,7 +126,9 @@ function snort_add_supplist_entry($suppress) {
/* tell Snort to load it, and return true; otherwise return false. */
if ($found_list) {
write_config("Snort pkg: modified Suppress List {$list_name}.");
+ conf_mount_rw();
sync_snort_package_config();
+ conf_mount_ro();
snort_reload_config($a_instance[$instanceid]);
return true;
}