From 51f61939da913f89a96fb622e3180bcb5a98e1b2 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 12 Jul 2016 13:36:47 +0200 Subject: [PATCH] Do not build insecure inetd time (rdate) plugin by default Signed-off-by: Joachim Nilsson --- configure.ac | 1 + plugins/Makefile.am | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f3705fa3..b61a1a26 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,7 @@ AC_ARG_ENABLE(quiet, AC_PLUGIN([alsa-utils], [no], [Save and restore ALSA sound settings using alsactl]) AC_PLUGIN([dbus], [no], [Setup and start system message bus, D-Bus]) AC_PLUGIN([inetd-echo], [no], [Inetd plugin: echo server, RFC862]) +AC_PLUGIN([inetd-time], [no], [Inetd plugin: time (rdate) server, RFC868]) AC_PLUGIN([lost], [no], [Example HOOK_SVC_LOST plugin, very noisy as-is!]) AC_PLUGIN([resolvconf], [no], [Setup necessary files for resolvconf]) AC_PLUGIN([x11-common], [no], [Console setup (for X)]) diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 35038251..ad620c55 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -6,7 +6,7 @@ AM_CPPFLAGS += -DFINIT_FIFO=\"$(fifo)\" $(lite_CFLAGS) if STATIC noinst_LTLIBRARIES = libplug.la libplug_la_SOURCES = bootmisc.c hwclock.c initctl.c netlink.c pidfile.c \ - time.c tty.c urandom.c + tty.c urandom.c if BUILD_ALSA_UTILS_PLUGIN libplug_la_SOURCES += alsa-utils.c @@ -20,6 +20,10 @@ if BUILD_INETD_ECHO_PLUGIN libplug_la_SOURCES += echo.c endif +if BUILD_INETD_TIME_PLUGIN +libplug_la_SOURCES += time.c +endif + if BUILD_LOST_PLUGIN libplug_la_SOURCES += lost.c endif @@ -30,7 +34,7 @@ endif else pkglib_LTLIBRARIES = bootmisc.la hwclock.la initctl.la netlink.la pidfile.la \ - time.la tty.la urandom.la + tty.la urandom.la if BUILD_ALSA_UTILS_PLUGIN pkglib_LTLIBRARIES += alsa-utils.la @@ -44,6 +48,10 @@ if BUILD_INETD_ECHO_PLUGIN pkglib_LTLIBRARIES += echo.la endif +if BUILD_INETD_TIME_PLUGIN +pkglib_LTLIBRARIES += time.la +endif + if BUILD_LOST_PLUGIN pkglib_LTLIBRARIES += lost.la endif