aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_for_rule_updates.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-22 15:05:09 +0000
committerErmal <eri@pfsense.org>2012-07-22 15:05:09 +0000
commit24cb2b896036e54d27675842859d0ec71d630e02 (patch)
tree820c985187933e5cd7c7591e048741aac21e1f03 /config/snort/snort_check_for_rule_updates.php
parentb5787668a4dbf9f22ffeb4a2ab9b39fec2a9184b (diff)
downloadpfsense-packages-24cb2b896036e54d27675842859d0ec71d630e02.tar.gz
pfsense-packages-24cb2b896036e54d27675842859d0ec71d630e02.tar.bz2
pfsense-packages-24cb2b896036e54d27675842859d0ec71d630e02.zip
Correct some code to use right vars
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rw-r--r--config/snort/snort_check_for_rule_updates.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 6221b38f..5b357cb7 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -303,11 +303,11 @@ function snort_apply_customizations($snortcfg, $if_real) {
log_error(gettext("Your set of configured rules are being copied..."));
$enabled_rulesets_array = explode("||", $snortcfg['rulesets']);
foreach($enabled_rulesets_array as $enabled_item) {
- @copy("{$snortdir}/rules/{$file}", "{$rule_dir}/rules/{$file}");
+ @copy("{$snortdir}/rules/{$enabled_item}", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/rules/{$enabled_item}");
if (substr($enabled_item, 0, 5) == "snort" && substr($enabled_item, -9) == ".so.rules") {
$slib = substr($enabled_item, 6, -6);
if (file_exists("/usr/local/lib/snort/dynamicrules/{$slib}"))
- @copy("/usr/local/lib/snort/dynamicrules/{$slib}", "{$snort_dirs['dynamicrules']}/{$slib}");
+ @copy("/usr/local/lib/snort/dynamicrules/{$slib}", "{$snortdir}/snort_{$snortcfg['uuid']}_{$if_real}/dynamicrules/{$slib}");
}
}