aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-11 23:29:47 -0400
committerjim-p <jim@pingle.org>2009-10-11 23:29:47 -0400
commit489dbb60f1083cbd5b5d55b281ccb170b1515b55 (patch)
tree35d756a9113398fa0fe8b778222978249558a08f /config/snort/snort_alerts.php
parent05cab845de13d8dbf482179af4e65780729a5d4a (diff)
downloadpfsense-packages-489dbb60f1083cbd5b5d55b281ccb170b1515b55.tar.gz
pfsense-packages-489dbb60f1083cbd5b5d55b281ccb170b1515b55.tar.bz2
pfsense-packages-489dbb60f1083cbd5b5d55b281ccb170b1515b55.zip
Add rw/ro calls to snort. May fix issues on nano
Diffstat (limited to 'config/snort/snort_alerts.php')
-rw-r--r--config/snort/snort_alerts.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index f463c0b9..e67b9b5f 100644
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -42,7 +42,9 @@ if (!$nentries)
if ($_POST['clear']) {
exec("killall syslogd");
+ conf_mount_rw();
exec("rm {$snort_logfile}; touch {$snort_logfile}");
+ conf_mount_ro();
system_syslogd_start();
exec("/usr/bin/killall -HUP snort");
exec("/usr/bin/killall snort2c");