aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-11-10 19:31:01 +0000
committerErmal <eri@pfsense.org>2011-11-10 19:31:20 +0000
commit612d5d31a66d33185eb150ba9107d641930c5332 (patch)
tree47a559b5c01e83c679df0e91e5a6a65e17e03fe3 /config/snort/snort_alerts.php
parent40eb9111c2d6ac52dd90b776784703974fb63372 (diff)
downloadpfsense-packages-612d5d31a66d33185eb150ba9107d641930c5332.tar.gz
pfsense-packages-612d5d31a66d33185eb150ba9107d641930c5332.tar.bz2
pfsense-packages-612d5d31a66d33185eb150ba9107d641930c5332.zip
Run snort as root user in pfSense this does not change much and allows to reload snort rather than stop start it.
Diffstat (limited to 'config/snort/snort_alerts.php')
-rw-r--r--config/snort/snort_alerts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index 06b3637a..53b9e3a2 100644
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -92,7 +92,8 @@ if ($_GET['action'] == "clear" || $_POST['clear'])
conf_mount_rw();
@file_put_contents("/var/log/snort/alert", "");
post_delete_logs();
- mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true);
+ /* XXX: This is needed is snort is run as snort user */
+ //mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true);
mwexec('/bin/chmod 660 /var/log/snort/*', true);
mwexec('/usr/bin/killall -HUP snort', true);
conf_mount_ro();