From: Peter Müller Date: Mon, 17 May 2021 19:07:11 +0000 (+0200) Subject: nagios-plugins: Prevent Nagios plugins from being owned by nobody X-Git-Tag: v2.25-core157~12^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50ba8b2e80459444c1973d0f904c3349741f765e;p=ipfire-2.x.git nagios-plugins: Prevent Nagios plugins from being owned by nobody Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/lfs/nagios-plugins b/lfs/nagios-plugins index ad081d5f62..d35a94bbee 100644 --- a/lfs/nagios-plugins +++ b/lfs/nagios-plugins @@ -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-plugins -PAK_VER = 4 +PAK_VER = 5 DEPS = @@ -88,4 +88,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP) + + # Prevent Nagios plugins from being owned (and hence writeable) by "nobody" + chown root:root -R /usr/lib/nagios/plugins + @$(POSTBUILD)