convert-snort: Fix ownership of the generated homenet file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 23 Apr 2019 18:33:02 +0000 (20:33 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Apr 2019 19:54:54 +0000 (20:54 +0100)
Fixes #12059.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/suricata/convert-snort

index 0ad2942..83931fa 100644 (file)
@@ -259,6 +259,9 @@ if (-f $IDS::rulestarball) {
 # Call subfunction to generate the file.
 &IDS::generate_home_net_file();
 
+# Set correct ownership for the homenet file.
+&IDS::set_ownership("$IDS::homenet_file");
+
 #
 ## Step 9: Setup automatic ruleset updates.
 #