]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
convert-ids-multiple-providers: Set correct ownership for default rules
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 8 Jan 2022 15:16:47 +0000 (16:16 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 8 Jan 2022 15:16:47 +0000 (16:16 +0100)
file.

Otherwise the file would belong to root and is not write-able by the
WUI.

Fixes #12759.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-multiple-providers

index cadcdfebc929e9448b40b0398ddb5cb66d554690..a0825084117b3c6f69ad1e5cea0ff9c4312682aa 100644 (file)
@@ -267,6 +267,7 @@ if (-f $old_used_rulefiles_file) {
        # Set correct ownerships.
        &IDS::set_ownership("$provider_used_rulefiles_file");
        &IDS::set_ownership("$IDS::suricata_used_providers_file");
+       &IDS::set_ownership("$IDS::suricata_default_rulefiles_file");
 }
 
 # Remove old used rulefiles file.