From patchwork Fri May 21 13:42:14 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: 4355 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 4Fmnpg2Xdxz3wbl for ; Fri, 21 May 2021 13:42:19 +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 4Fmnpg0bd4z6Yc; Fri, 21 May 2021 13:42:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Fmnpf6KTTz2ycQ; Fri, 21 May 2021 13:42: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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Fmnpf2b3yz2xd6 for ; Fri, 21 May 2021 13:42:18 +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 4Fmnpd1vpsz297 for ; Fri, 21 May 2021 13:42:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1621604538; 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=BmV7VEjyIaMIn6eul1rECwL4N/6TyfNDlj9b5RU3++A=; b=X1N7w4g4Q1xXCt2zLDqZExbpFekJZ0S3jvart0P7qy+y2XZ9ftQe+7oswYUIL9B59epaye oW8kMheo58jd64Aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1621604538; 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=BmV7VEjyIaMIn6eul1rECwL4N/6TyfNDlj9b5RU3++A=; b=LoiRaD+X2npqSNKWWPYHwW7xdaHw4JulFAeXQdQ5tpO1t/0yoXW8ahskOkze7V9Els6s+p 0zp87IBts3eQ+epvowyy44l6REJpEXO/4JdixSq0TOMosFUJbZSr+96ffYtxIiJob1UKxv slnU5DW+MuW829/iuIcOIoUc7dK0JzZGyXyfvfjKK6W9sDegR8op2j87YsWUgcsB2wPu8I 2ZawqQJEhS9K/Pq0GZqZbJi3i4JDrJ4LWndf/ddH5FOBPMyD2pgRl2wPCPUEyYnvPq/DZH pg4Ce8UL4kDVLzfaIBr51KQzWJbbDiovt7/oD4BiNqUfh6ep22X16/666R1a8Q== Subject: [PATCH 5/6] nagios-plugins: Set SUID bit for plugins which need it to function properly To: development@lists.ipfire.org References: <542b1005-b471-30bf-ead7-1c5dd93d457c@ipfire.org> <429b9a37-26f3-5ec4-d82d-99cb4aaa27a7@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= Message-ID: <423afb1f-304d-eecf-8db3-3ea5d9353fb8@ipfire.org> Date: Fri, 21 May 2021 15:42:14 +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/nagios-plugins | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lfs/nagios-plugins b/lfs/nagios-plugins index d35a94bbe..cdf1910b0 100644 --- a/lfs/nagios-plugins +++ b/lfs/nagios-plugins @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nagios-plugins -PAK_VER = 5 +PAK_VER = 6 DEPS = @@ -92,4 +92,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # Prevent Nagios plugins from being owned (and hence writeable) by "nobody" chown root:root -R /usr/lib/nagios/plugins + # Unfortunately, some of these plugins need the SUID bit to do their work properly + chmod +s \ + /usr/lib/nagios/plugins/check_dhcp \ + /usr/lib/nagios/plugins/check_icmp \ + /usr/lib/nagios/plugins/check_ide_smart \ + /usr/lib/nagios/plugins/check_ping + @$(POSTBUILD)