From: Eric Leblond Date: Fri, 29 Jan 2021 22:59:11 +0000 (+0100) Subject: suricata: unix-socket mode and -l are compatible X-Git-Tag: suricata-7.0.0-beta1~1818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a45064d4cc66e82b35edc99469dbc68ad146c25;p=thirdparty%2Fsuricata.git suricata: unix-socket mode and -l are compatible Commit 93642a0d1dd29c96e98824935ef963f6b1ef40eb did prevent to specify the logging directory on command line and use the unix socket. It looks like the implementation has evolved and the arbitrary limitation can be removed allowing a user to start unix socket without editing the configuration file. --- diff --git a/src/suricata.c b/src/suricata.c index 4f054aeb1d..4fc13d3b18 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1840,12 +1840,6 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri) return TM_ECODE_FAILED; } - if ((suri->run_mode == RUNMODE_UNIX_SOCKET) && suri->set_logdir) { - SCLogError(SC_ERR_INITIALIZATION, - "can't use -l and unix socket runmode at the same time"); - return TM_ECODE_FAILED; - } - /* save the runmode from the commandline (if any) */ suri->aux_run_mode = suri->run_mode;