convert-snort: Fix ownership of the generated homenet file.
Commit Message
Fixes #12059.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
config/suricata/convert-snort | 3 +++
1 file changed, 3 insertions(+)
Comments
Merged.
> On 23 Apr 2019, at 19:33, Stefan Schantl <stefan.schantl@ipfire.org> wrote:
>
> Fixes #12059.
>
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
> config/suricata/convert-snort | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/config/suricata/convert-snort b/config/suricata/convert-snort
> index 0ad2942b1..83931fa5b 100644
> --- a/config/suricata/convert-snort
> +++ b/config/suricata/convert-snort
> @@ -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.
> #
> --
> 2.20.1
>
@@ -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.
#