dns/dnsdist: Update to 1.3.2

- Add a note to UPDATING about breaking changes

Changelog: https://dnsdist.org/changelog.html#change-1.3.2

PR:		229742
Submitted by:	Ralf van der Enden <tremere@cainites.net>
Approved by:	cpm
This commit is contained in:
Carlos J. Puga Medina 2018-07-14 09:17:51 +00:00
parent bafa583aa8
commit 4bde293561
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474629
4 changed files with 19 additions and 58 deletions

View File

@ -5,6 +5,21 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20180714:
AFFECTS: users of dns/dnsdist
AUTHOR: cpm@FreeBSD.org
After discussing with several users, we noticed that quite a lot of them
were not aware that enabling the dnsdist's console without a key, even
restricted to the local host, could be a security issue and allow privilege
escalation by allowing an unprivileged user to connect to the console and
execute Lua code as the dnsdist user. We therefore decided to refuse any
connection to the console until a key has been set, so please check that
you do set a key before upgrading if you use the console.
For further details read:
https://blog.powerdns.com/2018/07/10/dnsdist-1-3-2-released/
20180704:
AFFECTS: users of www/gitlab
AUTHOR: mfechner@FreeBSD.org

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= dnsdist
DISTVERSION= 1.3.0
PORTREVISION= 5
DISTVERSION= 1.3.2
CATEGORIES= dns net
MASTER_SITES= https://downloads.powerdns.com/releases/ \
LOCAL/cpm

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1522585108
SHA256 (dnsdist-1.3.0.tar.bz2) = aa67cd4db8404a13ed4ed1097dd850203dab8a327372f72bb140df11ef7eba08
SIZE (dnsdist-1.3.0.tar.bz2) = 924183
TIMESTAMP = 1531293770
SHA256 (dnsdist-1.3.2.tar.bz2) = 0be7704e5a418a8ed6908fc110ecfb9bc23f270b5af8a5525f1fa934ef0e6bc4
SIZE (dnsdist-1.3.2.tar.bz2) = 918200

View File

@ -1,53 +0,0 @@
https://github.com/PowerDNS/pdns/commit/e6a9dde524b5
--- dns.hh.orig 2018-03-29 15:25:58 UTC
+++ dns.hh
@@ -235,7 +235,6 @@ inline uint16_t * getFlagsFromDNSHeader(struct dnshead
#define FLAGS_CD_OFFSET (12)
#endif
-#define L theL()
extern time_t s_starttime;
uint32_t hashQuestion(const char* packet, uint16_t len, uint32_t init);
--- dnsdist-carbon.cc.orig 2018-03-29 15:25:58 UTC
+++ dnsdist-carbon.cc
@@ -27,7 +27,6 @@
#include "sstuff.hh"
#include "namespaces.hh"
-#undef L
#include "dnsdist.hh"
GlobalStateHolder<vector<CarbonConfig> > g_carbon;
--- dnsdist.cc.orig 2018-03-29 15:25:58 UTC
+++ dnsdist.cc
@@ -2258,7 +2258,7 @@ try
bindAny(cs->local.sin4.sin_family, cs->udpFD);
// if (!setSocketTimestamps(cs->udpFD))
- // L<<Logger::Warning<<"Unable to enable timestamp reporting for socket"<<endl;
+ // g_log<<Logger::Warning<<"Unable to enable timestamp reporting for socket"<<endl;
if(IsAnyAddress(cs->local)) {
--- remote_logger.cc.orig 2018-03-29 15:25:58 UTC
+++ remote_logger.cc
@@ -22,7 +22,7 @@ bool RemoteLogger::reconnect()
}
catch(const std::exception& e) {
#ifdef WE_ARE_RECURSOR
- L<<Logger::Warning<<"Error connecting to remote logger "<<d_remote.toStringWithPort()<<": "<<e.what()<<std::endl;
+ g_log<<Logger::Warning<<"Error connecting to remote logger "<<d_remote.toStringWithPort()<<": "<<e.what()<<std::endl;
#else
warnlog("Error connecting to remote logger %s: %s", d_remote.toStringWithPort(), e.what());
#endif
@@ -63,7 +63,7 @@ void RemoteLogger::worker()
}
catch(const std::runtime_error& e) {
#ifdef WE_ARE_RECURSOR
- L<<Logger::Info<<"Error sending data to remote logger "<<d_remote.toStringWithPort()<<": "<< e.what()<<endl;
+ g_log<<Logger::Info<<"Error sending data to remote logger "<<d_remote.toStringWithPort()<<": "<< e.what()<<endl;
#else
vinfolog("Error sending data to remote logger (%s): %s", d_remote.toStringWithPort(), e.what());
#endif