aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_logs_mgmt.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-10 16:01:29 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:11:59 -0500
commitc2b4378b69a890cc479e179bf5dac0e61c7f7692 (patch)
treece815a85acf4bcf8ec4174c3fa37a534a7e9d274 /config/suricata/suricata_logs_mgmt.php
parenta5fe716ec4129a1908b7c51fd778ecf9e26327f3 (diff)
downloadpfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.tar.gz
pfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.tar.bz2
pfsense-packages-c2b4378b69a890cc479e179bf5dac0e61c7f7692.zip
Wrap calls to sync_suricata_package_config() with conf_mount_rw().
Diffstat (limited to 'config/suricata/suricata_logs_mgmt.php')
-rw-r--r--config/suricata/suricata_logs_mgmt.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/suricata/suricata_logs_mgmt.php b/config/suricata/suricata_logs_mgmt.php
index fec2d149..f929675d 100644
--- a/config/suricata/suricata_logs_mgmt.php
+++ b/config/suricata/suricata_logs_mgmt.php
@@ -173,7 +173,9 @@ if ($_POST["save"] || $_POST['apply']) {
if ($_POST['enable_log_mgmt'] != 'on') {
$config['installedpackages']['suricata']['config'][0]['enable_log_mgmt'] = $_POST['enable_log_mgmt'] ? 'on' :'off';
write_config("Suricata pkg: saved updated configuration for LOGS MGMT.");
+ conf_mount_rw();
sync_suricata_package_config();
+ conf_mount_ro();
/* forces page to reload new settings */
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
@@ -222,7 +224,9 @@ if ($_POST["save"] || $_POST['apply']) {
$config['installedpackages']['suricata']['config'][0]['sid_changes_log_retention'] = $_POST['sid_changes_log_retention'];
write_config("Suricata pkg: saved updated configuration for LOGS MGMT.");
+ conf_mount_rw();
sync_suricata_package_config();
+ conf_mount_ro();
/* forces page to reload new settings */
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );