mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
nagios-plugins: Set SUID bit for plugins which need it to function properly
Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
488e29e033
commit
b6e3a3eec9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user