From patchwork Wed Apr 24 04:33:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2210 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id 7565985BD82 for ; Tue, 23 Apr 2019 19:33:09 +0100 (BST) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 44pXBX3rLRz5H9PS; Tue, 23 Apr 2019 19:33:08 +0100 (BST) Received: from tuxedo.stevee (213162073004.public.t-mobile.at [213.162.73.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 44pXBT10xCz5H9PM; Tue, 23 Apr 2019 19:33:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904rsa; t=1556044385; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:openpgp:autocrypt; bh=i4crM4f6OShdd7xaUN8kGmuNyg1mktWqCboXMtxGtzM=; b=fADreap5caD4tRsAw5+HOnhRd52mpSRVle7dw67yOuAN9mRQeq5Xmu57tCztzvkAAUT075 vhTCaiwTpdh2Bhy54xpUexYUM22/Swj5WR9yyuIify4UY2/hvhRwYm4Vgair/RGOlYRvRe 2EDsdxP3uiPQN2oWdYiTolCVBVtKhBQKg7ie7GQqRmG4kunzu7fBg/rt9wQNbsYVvN5eZF OU+vnl8yq+n9fHU7ohrJpGVsMDkuNQgCvDo8MRUI/+5VWyp0VjJEoENTV1WC2jzTOaBNWy mevXpJodvz8hbox+lewadYNcGEowo3dQqPvZbQr40r15T6bqgG/yZRbJWYYLag== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201904ed25519; t=1556044385; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:openpgp:autocrypt; bh=i4crM4f6OShdd7xaUN8kGmuNyg1mktWqCboXMtxGtzM=; b=pU3NLVR9YYt3wFqN03kNJIzMh4f9jg7lN1P27+kD+NDVJ+VoHL5o5AGdQGQEwrydL0lh9i eRr0WJwTd3H3zEBw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] convert-snort: Fix ownership of the generated homenet file. Date: Tue, 23 Apr 2019 20:33:02 +0200 Message-Id: <20190423183302.4556-1-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" X-Spam: Yes Fixes #12059. Signed-off-by: Stefan Schantl --- 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. #