From patchwork Mon May 17 19:06:50 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: 4318 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 4FkTC20hqcz3wbk for ; Mon, 17 May 2021 19:06:54 +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 4FkTC14lz7z1Zf; Mon, 17 May 2021 19:06:53 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FkTC14Hcrz2ybq; Mon, 17 May 2021 19:06:53 +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 4FkTC05CHvz2xPC for ; Mon, 17 May 2021 19:06:52 +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 4FkTBz6ZdVzxV for ; Mon, 17 May 2021 19:06:51 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1621278412; 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=7ruMFl3ZOTWcd6Yy7yFyzGST9PFzSSTgUCinC7GE3U0=; b=laTf7lgUS1HbszhECu4LbAcJEUha0uiu9O0Ss2+0fWELh+COZFz3xfnppYZRa6ehAoj7tu cZFmMwuhx4c3ERAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1621278412; 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=7ruMFl3ZOTWcd6Yy7yFyzGST9PFzSSTgUCinC7GE3U0=; b=FiEqq7Gonv+KOQOFSSQhX0/NAvlzlg0swbAjf0CLOI/HP1Mr1tfA6lDMrM+jhl/f94O7jn wSK23y/QLS/eSutg2NpmFW9MVKWOx2xe6TyWGQ1v7JYwadoJ0Xh9VpeG1s086vQ7LB8Gvv R74IPEoJd/mKe0iBwFXKVAmE9SMdA0clsbbrENfWKRaRtVGnLDnvPAMkTE0XlxH+qAJxrW IPsDWgs7+h79vcmjLPmi6xhPnOUxQGPjG+onHGYKMYXx2VAOhpfVfgNX+GicSGdYAPF1GE FQoPurA9n+suA0m5X/LEZQ1L02xbdxysy5k6t/uUaz2UDYPxjgDSJ8JV/BFm2A== Subject: [PATCH 17/20] NRPE: Prevent NRPE binary 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> <4d993216-9803-346c-3f54-de35633d1205@ipfire.org> <0334d010-8b7d-7e4c-bf29-83f9bf12c229@ipfire.org> <62f381bd-c870-107a-cd81-27cb283660bb@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= Message-ID: Date: Mon, 17 May 2021 21:06:50 +0200 MIME-Version: 1.0 In-Reply-To: <62f381bd-c870-107a-cd81-27cb283660bb@ipfire.org> 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/nagios_nrpe | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index a8b4b3676..260bcc810 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2021 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nagios_nrpe -PAK_VER = 8 +PAK_VER = 9 DEPS = nagios-plugins @@ -99,5 +99,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) install -v -m 644 ${DIR_SRC}/config/backup/includes/nagios_nrpe \ /var/ipfire/backup/addons/includes/nagios_nrpe + # Prevent NRPE binary from being owned by "nobody" + chown root:root /usr/lib/nagios/check_nrpe + @rm -rf $(DIR_APP) @$(POSTBUILD)