]> git.ipfire.org Git - thirdparty/suricata.git/commit
startup: initialize run as user info sooner
authorJason Ish <jason.ish@oisf.net>
Thu, 20 Jan 2022 17:40:24 +0000 (11:40 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Jan 2022 10:32:18 +0000 (11:32 +0100)
commit08518df373625eed25d03108bd24b9e389295c81
treea2e92751345f854c960778ec1ed38da4372ca674
parentf668524731945792f431c0d2e42df623d0b4eea3
startup: initialize run as user info sooner

Initialize the run-as user info after loading the config, but
before setting up logging (previously it was done while initializing
signal handlers). This will allow the log file to be given the
correct permissions if Suricata is configured to run as a non-root
user.
src/suricata.c