diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-01-13 10:51:45 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-01-13 10:51:45 -0500 |
commit | af4460ff3f18dff763e0a493ac71be37dd814435 (patch) | |
tree | 357bc9cf44654cf1ac366e9244f28d2b8a014b9f /config/snort/snort_check_for_rule_updates.php | |
parent | 8e3a6c43552fa36df9dd19a0dd0db312add43d11 (diff) | |
download | pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.gz pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.bz2 pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.zip |
Incorporate Ermal's comments -- use conf_mount_rw() only where needed.
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index a93aef56..807b7844 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -104,6 +104,9 @@ $snort_filename = "snortrules-snapshot-{$snortver[0]}.tar.gz"; $snort_filename_md5 = "{$snort_filename}.md5"; $snort_rule_url = VRT_DNLD_URL; +/* Mount the Snort conf directories R/W so we can modify files there */ +conf_mount_rw(); + /* Set up Emerging Threats rules filenames and URL */ if ($etpro == "on") { $emergingthreats_filename = ETPRO_DNLD_FILENAME; @@ -364,8 +367,9 @@ function snort_fetch_new_rules($file_url, $file_dst, $file_md5, $desc = "") { } +/**********************/ /* Start of main code */ -conf_mount_rw(); +/**********************/ /* remove old $tmpfname files */ if (is_dir("{$tmpfname}")) |