diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-06-07 07:59:32 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-06-07 07:59:32 +0000 |
commit | a22fb2e364fcce8e46dd34488924997b73015c85 (patch) | |
tree | c753f578fba9d6540a11699f397ffd4a07d168cc /plugins-root/Makefile.am | |
parent | b2363e2914cd798f5fa230b31902da906795c9d6 (diff) | |
download | monitoring-plugins-a22fb2e364fcce8e46dd34488924997b73015c85.tar.gz |
Do not install setuid programs unless run as root
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1416 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root/Makefile.am')
-rw-r--r-- | plugins-root/Makefile.am | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index f5ecc461..5a2af85b 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am @@ -9,7 +9,7 @@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@ -libexec_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@ +noinst_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@ EXTRA_PROGRAMS = pst3 @@ -28,12 +28,10 @@ test: setuid_root_mode = 4550 -group = nagios - # /* Author Coreutils team - see ACKNOWLEDGEMENTS */ INSTALL_SUID = \ - for f in $(libexec_PROGRAMS) ; do \ + for f in $(noinst_PROGRAMS) ; do \ p=$$f; \ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \ @@ -43,10 +41,10 @@ INSTALL_SUID = \ chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \ done -install-root: $(libexec_PROGRAMS) +install-root: $(noinst_PROGRAMS) @$(INSTALL_SUID) -install-exec-local: $(libexec_PROGRAMS) +install-exec-local: $(noinst_PROGRAMS) @TMPFILE=$(DESTDIR)$(libexecdir)/.setuid-$$$$; \ rm -f $$TMPFILE; \ echo > $$TMPFILE; \ |