]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
datasets: initialize after dropping privileges
authorJason Ish <jason.ish@oisf.net>
Thu, 9 Dec 2021 22:59:04 +0000 (16:59 -0600)
committerJeff Lucovsky <jeff@lucovsky.org>
Sat, 15 Jan 2022 13:01:18 +0000 (08:01 -0500)
Move initialization of datasets to a point after privileges
have been dropped.

Ticket 4239

(cherry picked from commit 92eb14c5adc985433dd44bdcac18fa6e67440043)

src/suricata.c

index 4fc609f16aff84329d18de6086452eef37cf8ae1..72c96678a54fa18b27d0f024975163b3951c519f 100644 (file)
@@ -2329,6 +2329,7 @@ void PreRunPostPrivsDropInit(const int runmode)
 {
     StatsSetupPostConfigPreOutput();
     RunModeInitializeOutputs();
+    DatasetsInit();
 
     if (runmode == RUNMODE_UNIX_SOCKET) {
         /* As the above did some necessary startup initialization, it