From patchwork Sat Mar 5 17:53:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5318 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K9slQ37kfz3xK1 for ; Sat, 5 Mar 2022 17:53:22 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4K9slL6B2xzQl; Sat, 5 Mar 2022 17:53:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K9slL572Zz2ygN; Sat, 5 Mar 2022 17:53:18 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K9slJ6Xv8z2xKc for ; Sat, 5 Mar 2022 17:53:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4K9slH4RCLzQl; Sat, 5 Mar 2022 17:53:15 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1646502795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kk8AdFM1LycFX/dcdQuNNNm1bHKSsSJ++pW9r6WbVwE=; b=BXwrYxFO02ZPn+F+DR872/nUTsh0AmT8nMmN+qMyXd/GZSWD6eSaEtY/KGwdW0UxcFUUTL iezEGrOSLivJupAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1646502795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kk8AdFM1LycFX/dcdQuNNNm1bHKSsSJ++pW9r6WbVwE=; b=JSFDS6X4vH5lUYT1dI7pVPvNtHkPhk/95R7K4jI4MYuxJbGo1JCtIOfxkRyJW0X8jhGBbz 40baQZ51P3IlsRoPKBj2Lj/wm9nc24xx9GAicy7yXG/TRkls9voTGhMonFLvpighVGHRWC vJQsVFCAvoff/sivLP2JYxvplgxBhU4eWHSjsg5uqyg1cXRUk6nEUrJm1U/hY7LpOLTEWc iKln6jGl8Y70BTPtmjx+XESkrQDsPiPPJY/5v5CtSc4CCZvg9wLsltszuceibzZ6Dxnjyp t/jIq5OM5aOKh/s/UdMLHVns9JfQBmUcod6M1qk1J6SjOHP5ucMMxI0UGSVV7A== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] ids-functions.pl: Do not create an empty ignored settings file. Date: Sat, 5 Mar 2022 18:53:10 +0100 Message-Id: <20220305175310.3036-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 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" The file will be created by the WUI, when adding the first host. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 53ca1bdd4..7223e6bea 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -153,7 +153,6 @@ sub check_and_create_filelayout() { unless (-f "$suricata_default_rulefiles_file") { &create_empty_file($suricata_default_rulefiles_file); } unless (-f "$ids_settings_file") { &create_empty_file($ids_settings_file); } unless (-f "$providers_settings_file") { &create_empty_file($providers_settings_file); } - unless (-f "$ignored_file") { &create_empty_file($ignored_file); } unless (-f "$whitelist_file" ) { &create_empty_file($whitelist_file); } }