Project

General

Profile

Actions

Optimization #3262

closed

Use unique temporary directory for log output when running running Suricata test

Added by Jason Ish over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Target version:
Effort:
low
Difficulty:
low
Label:

Description

When Suricata-Update runs "suricata -T", it also uses "-l /tmp", which can fail when existing files are in that directory and are not writable by the current instance for Suricata-Update. Using a temporary directory should solve issues here.

For example, creating a directory with tempfile.mkdtemp() then removing it with an exit hook.

Actions

Also available in: Atom PDF