From 40c68f7dd7c62c53954452faa63c9cc50af96fe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 30 Jan 2017 17:38:27 +0100 Subject: [PATCH] workarounds: prototype of a new module including code to deal with #128 and #140. --- modules/modules.mk | 1 + modules/workarounds/README.rst | 4 ++++ modules/workarounds/workarounds.lua | 20 ++++++++++++++++++++ modules/workarounds/workarounds.mk | 2 ++ 4 files changed, 27 insertions(+) create mode 100644 modules/workarounds/README.rst create mode 100644 modules/workarounds/workarounds.lua create mode 100644 modules/workarounds/workarounds.mk diff --git a/modules/modules.mk b/modules/modules.mk index d6077ebc7..4687bc41c 100644 --- a/modules/modules.mk +++ b/modules/modules.mk @@ -27,6 +27,7 @@ modules_TARGETS += ketcd \ renumber \ http \ daf \ + workarounds \ version endif diff --git a/modules/workarounds/README.rst b/modules/workarounds/README.rst new file mode 100644 index 000000000..872a1af7d --- /dev/null +++ b/modules/workarounds/README.rst @@ -0,0 +1,4 @@ +.. _mod-workarounds: + +FIXME + diff --git a/modules/workarounds/workarounds.lua b/modules/workarounds/workarounds.lua new file mode 100644 index 000000000..255fe7848 --- /dev/null +++ b/modules/workarounds/workarounds.lua @@ -0,0 +1,20 @@ +-- Load dependent module +if not policy then modules.load('policy') end + +local M = {} -- the module + +function M.config() + policy.add(policy.suffix(policy.FLAGS(kres.query.NO_0X20), { + -- https://github.com/DNS-OARC/dns-violations/blob/master/2017/DVE-2017-0003.md + todname('avqs.mcafee.com'), + + -- https://github.com/DNS-OARC/dns-violations/blob/master/2017/DVE-2017-0006.md + -- Obtained via a reverse search on {ns1,ns3}.panthercdn.com. + todname('cdnga.com'), todname('cdngc.com'), todname('cdngd.com'), + todname('cdngl.com'), todname('cdngm.com'), + todname('cdngc.net'), todname('panthercdn.com'), + })) +end + +return M + diff --git a/modules/workarounds/workarounds.mk b/modules/workarounds/workarounds.mk new file mode 100644 index 000000000..6b0493e25 --- /dev/null +++ b/modules/workarounds/workarounds.mk @@ -0,0 +1,2 @@ +workarounds_SOURCES := workarounds.lua +$(call make_lua_module,workarounds) -- 2.47.2