aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_barnyard.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_barnyard.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_barnyard.php')
-rw-r--r--config/snort/snort_barnyard.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php
index 3f3d8ae5..b3e3723e 100644
--- a/config/snort/snort_barnyard.php
+++ b/config/snort/snort_barnyard.php
@@ -103,7 +103,9 @@ if ($_POST['save']) {
// No need to rebuild rules for Barnyard2 changes
$rebuild_rules = false;
+ conf_mount_rw();
sync_snort_package_config();
+ conf_mount_ro();
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
@@ -196,7 +198,9 @@ if ($_POST['save']) {
// No need to rebuild rules for Barnyard2 changes
$rebuild_rules = false;
+ conf_mount_rw();
sync_snort_package_config();
+ conf_mount_ro();
// If disabling Barnyard2 on the interface, stop any
// currently running instance. If an instance is