convert-ids-multiple-providers: Set correct ownership for default rules

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>
This commit is contained in:
Stefan Schantl
2022-01-08 16:16:47 +01:00
parent 9cfcc7e546
commit 9b53f65107

View 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.