]> 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)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 20 Feb 2022 14:55:38 +0000 (09:55 -0500)
commit254605f1a692174214ce5638179f551f47e0f59e
tree95002ef3353ba674dfdf570b27c8a67ac95aa186
parentc259621773e2d44527ff2e5c74c998fea7f1687a
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