From patchwork Thu Mar 3 18:55:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5308 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4K8gDm6P1Yz3xgV for ; Thu, 3 Mar 2022 18:56:08 +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 4K8gDl14s4z5XL; Thu, 3 Mar 2022 18:56:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4K8gDk73mBz2yRM; Thu, 3 Mar 2022 18:56:06 +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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4K8gDj52J1z2yDF for ; Thu, 3 Mar 2022 18:56:05 +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 4K8gDj1xyyz2Nq; Thu, 3 Mar 2022 18:56:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1646333765; 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=hWBMDgykgii7CbVjh7o3MRxf7Pt+d93IgxARQxXhiJg=; b=Zh6IBvUrv93teWoKnUb2vMjBroUa5IG/BvggZr5EA0szbcT7ag9kh0ye1qzcc2g8uhpm1E k4KZtexijPKNl8DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1646333765; 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=hWBMDgykgii7CbVjh7o3MRxf7Pt+d93IgxARQxXhiJg=; b=qyrqyH1WVgP9rhD/WVYryyPd2pQ48vhhDmXsC707jknaI45P5sGu9Gq9S59KW0m0ktj4aN mGXuGSFoLqvgd0YmI/Z3/AX5BWPy/xLAIZPIIGyYhnukU4dy0qwVtDFnZ8w92sDAHu2eI1 8PQYexnLeZ4e3GdZO4G6NyPBlcMCqpn3KhG5Eldnzn6y5u0Qh0CmOLk9EC+UDZ+8TQgZ/h H1EQ8UD97TY6rOhuiPzw8YfbIa98wefyU6hpRZ3CRaXU3R52AX5okb7zb9xrcQP8pVvy2v i/5SSJcA9liKCckZ0LcdD88gDfIes/AYDT4DCnLxrUGGs9gGY5HDLAeb9JORwg== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] ids-functions.pl: Do not try to chown files while extracting them. Date: Thu, 3 Mar 2022 19:55:59 +0100 Message-Id: <20220303185559.3551-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" We are almost running as an unprivileged user and therfore have not the permissions to do this. This will save us a lot of confusion error messages. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 74d55def6..23430f472 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -475,6 +475,9 @@ sub extractruleset ($) { # Load perl module to deal with archives. use Archive::Tar; + # Disable chown functionality when uncompressing files. + $Archive::Tar::CHOWN = "0"; + # Load perl module to deal with files and path. use File::Basename;