From e96adc77972108de9cb8b4b6c0f7fbad07b76035 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 17 Apr 2019 20:59:55 +0100 Subject: [PATCH] suricata: Redirect oinkmaster output to perl function The output was written to stderr before and landed in apache's error log where we do not want it. Fixes: #12004 Signed-off-by: Michael Tremer --- config/cfgroot/ids-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 016c0e49d6..425b5e5a09 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -324,7 +324,7 @@ sub oinkmaster () { openlog('oinkmaster', 'cons,pid', 'user'); # Call oinkmaster to generate ruleset. - open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath|") or die "Could not execute oinkmaster $!\n"; + open(OINKMASTER, "/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C $settingsdir/oinkmaster.conf -o $rulespath 2>&1 |") or die "Could not execute oinkmaster $!\n"; # Log output of oinkmaster to syslog. while() { -- 2.39.2