]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
nagios-plugins: Set SUID bit for plugins which need it to function properly
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 21 May 2021 13:42:14 +0000 (15:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 May 2021 09:43:00 +0000 (09:43 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/nagios-plugins

index d35a94bbeeec867f9f5799f5dad521fb9605e380..cdf1910b08252639c83d3c0ae65c0a840c85f8b4 100644 (file)
@@ -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)