convert-snort: Fix ownership of the generated homenet file.

Message ID 20190423183302.4556-1-stefan.schantl@ipfire.org
State Accepted
Commit 25d424387e5897515ab78da902bf18d50701326a
Headers
Series convert-snort: Fix ownership of the generated homenet file. |

Commit Message

Stefan Schantl April 24, 2019, 4:33 a.m. UTC
  Fixes #12059.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 config/suricata/convert-snort | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Michael Tremer April 24, 2019, 8:53 p.m. UTC | #1
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
>
  

Patch

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