From 2be9ffa7f11999cbb4d1c23cd0cc172ab497afa4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 27 Oct 2009 08:14:10 -0400 Subject: Add some extra rw checking to snort inc, somehow it's dropping rw in the middle somewhere. --- config/snort/snort.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config') 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) { -- cgit v1.2.3