aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
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");