From: Remi Gacogne Date: Fri, 7 Feb 2020 11:15:36 +0000 (+0100) Subject: Merge pull request #7820 from pieterlexis/systemd-no-setuid X-Git-Tag: auth-4.3.0-beta2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae067ab675669de82457e06df328a4ca10e069f5;p=thirdparty%2Fpdns.git Merge pull request #7820 from pieterlexis/systemd-no-setuid dnsdist: don't start as root within a systemd environment --- ae067ab675669de82457e06df328a4ca10e069f5 diff --cc pdns/dnsdistdist/configure.ac index e0109dc284,4daf7291f9..89bb865e19 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@@ -47,10 -47,8 +47,11 @@@ PDNS_WITH_LIBCA AX_AVAILABLE_SYSTEMD AX_CHECK_SYSTEMD_FEATURES AM_CONDITIONAL([HAVE_SYSTEMD], [ test x"$systemd" = "xy" ]) + PDNS_WITH_SERVICE_USER([dnsdist]) +dnl the *_r functions are in posix so we can use them unconditionally, but the ext/yahttp code is +dnl using the defines. +AC_CHECK_FUNCS_ONCE([localtime_r gmtime_r]) AC_SUBST([YAHTTP_CFLAGS], ['-I$(top_srcdir)/ext/yahttp']) AC_SUBST([YAHTTP_LIBS], ['$(top_builddir)/ext/yahttp/yahttp/libyahttp.la']) AC_SUBST([IPCRYPT_CFLAGS], ['-I$(top_srcdir)/ext/ipcrypt'])