diff --git a/src/suricata.c b/src/suricata.c index a4830d4313..fff627e998 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -3195,6 +3195,10 @@ void SuricataPostInit(void) SC_ATOMIC_SET(engine_stage, SURICATA_RUNTIME); PacketPoolPostRunmodes(); + /* pledge before allowing threads to continue to avoid an issue with pcap file directory mode, + * see ticket #8300. */ + SCPledge(); + /* Un-pause all the paused threads */ TmThreadContinueThreads(); @@ -3214,5 +3218,4 @@ void SuricataPostInit(void) SystemHugepageSnapshotDestroy(prerun_snap); SystemHugepageSnapshotDestroy(postrun_snap); } - SCPledge(); }