From patchwork Mon May 17 19:05:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 4313 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 4FkT934D8rz3wbb for ; Mon, 17 May 2021 19:05:11 +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 4FkT930xT9z2L1; Mon, 17 May 2021 19:05:11 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FkT930RdGz2yTb; Mon, 17 May 2021 19:05:11 +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 4FkT9203Nxz2xd6 for ; Mon, 17 May 2021 19:05:10 +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)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4FkT911Ls9zxV for ; Mon, 17 May 2021 19:05:09 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1621278309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Ny62lh7UJK1mRqXFQAb9zP7Z8tGYv8nteLZDHvMUDM=; b=sbw3bl4cX1XdGAE5cRwCiv1r+c7HVT9XQboNvFMHhkgSFHnxiuMFX5mfibjISAKCFu5Njm prG2JjjkH4p0IiAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1621278309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Ny62lh7UJK1mRqXFQAb9zP7Z8tGYv8nteLZDHvMUDM=; b=TMiZDTTfMmS5RuPAOrN12z1M9Qedcs32H+ANQ54iWc/PqS01tXxBNQLjnEsNi+az9avWiU gGBffK8mgKa1H0eIxhnykIEfHpG+xAeex78dxer6+kmt6y0aA/3Lt5h3HXFNPtsE9HAx+R N9ysG1O0ry21F4MEjmv9Bkq6hHQCwG6kp+E/EP1lBYQQFDQ3it+puBVjKix2mB3nFxXrRF liyDWtZ7cQqLvKmw11mgLuQGRwUw+Xzg9FcA1s8drXMqU+80ni3Bf0mkDgqJXPCz9kyU8+ nWAPNK1LrP1YNliiFXTpBX55Dk1XGJGmElEgKLEHQuVZDM6w/U10YPGCAHampQ== Subject: [PATCH 12/20] Squid: Prevent binaries within /var/ipfire/updatexlrator/bin/ from being owned by nobody To: development@lists.ipfire.org References: <7b61506c-84b9-f4e8-7a5f-5a8e8a39f795@ipfire.org> <4924bc88-655d-2a81-96de-000a7362bece@ipfire.org> <6a4b79d4-6fdd-612f-36d4-e7614f1164be@ipfire.org> <2fb1ab47-34a4-f58d-93a8-3e2f79f122ff@ipfire.org> <0bd0080a-d095-5028-22fa-7d5436b9baf3@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= Message-ID: <4d993216-9803-346c-3f54-de35633d1205@ipfire.org> Date: Mon, 17 May 2021 21:05:07 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US 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" Signed-off-by: Peter Müller --- lfs/squid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lfs/squid b/lfs/squid index 33cb95ba1..18cb30ef7 100644 --- a/lfs/squid +++ b/lfs/squid @@ -171,6 +171,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) ln -fs /bin/false /var/ipfire/updatexlrator/autocheck/cron.weekly chown -R nobody:nobody /var/ipfire/updatexlrator + chown -R root:root /var/ipfire/updatexlrator/bin chown nobody.squid /var/updatecache chown nobody.squid /var/updatecache/download chown nobody.squid /var/updatecache/metadata @@ -186,7 +187,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) chown nobody.nobody /srv/web/ipfire/html/proxy.pac ln -sf /srv/web/ipfire/html/proxy.pac /srv/web/ipfire/html/wpad.dat - #Copy stylesheets for the errorpages + # Copy stylesheets for the errorpages cp -f $(DIR_SRC)/config/proxy/errorpage-ipfire.css /var/ipfire/proxy/ cp -f /etc/squid/errorpage.css /var/ipfire/proxy/errorpage-squid.css