aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-27 08:14:10 -0400
committerjim-p <jim@pingle.org>2009-10-27 08:15:00 -0400
commit2be9ffa7f11999cbb4d1c23cd0cc172ab497afa4 (patch)
treeb56841819749be1b49d65df9762067c313db65ed /config
parent1ed001a0c5cc3515a328408bc37776a91390ab56 (diff)
downloadpfsense-packages-2be9ffa7f11999cbb4d1c23cd0cc172ab497afa4.tar.gz
pfsense-packages-2be9ffa7f11999cbb4d1c23cd0cc172ab497afa4.tar.bz2
pfsense-packages-2be9ffa7f11999cbb4d1c23cd0cc172ab497afa4.zip
Add some extra rw checking to snort inc, somehow it's dropping rw in the middle somewhere.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 3eabcc0e..87f55d67 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -898,7 +898,8 @@ function snort_rules_up_install_cron($should_install) {
snort_rules_up_install_cron("");
snort_rules_up_install_cron($snort_rules_up_false);
}
-
+ /* Be sure we're really rw before writing */
+ conf_mount_rw();
/* open snort2c's whitelist for writing */
$whitelist = fopen("/var/db/whitelist", "w");
if(!$whitelist) {
@@ -995,6 +996,8 @@ function snort_rules_up_install_cron($should_install) {
/* close file */
fclose($whitelist);
+ /* Be sure we're really rw before writing */
+ conf_mount_rw();
/* open snort's threshold.conf for writing */
$threshlist = fopen("/usr/local/etc/snort/threshold.conf", "w");
if(!$threshlist) {