]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 8 Mar 2022 15:04:15 +0000 (20:34 +0530)
commit38db09bbb5a401a40554a2c24c998e2d41cf1cb3
tree7b95fb35a36ecf7651be740a647ad17bc95079ac
parent7b47bffda8d4fb4f74713e11e6013952436d0791
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.

(cherry picked from commit 08518df373625eed25d03108bd24b9e389295c81)
src/suricata.c