Skip to contentSkip to conversation

dnsmasq: Disable CHAOS by default

PATCH New Jeroen Roovers 2 participants 2 messages Oct 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 dnsmasq: Disable CHAOS by default

dnsmasq exposes its version and some statistics through DNS, a features that is configurable only at build time and is enabled by default.

---
 package/dnsmasq/Config.in  | 6 ++++++
 package/dnsmasq/dnsmasq.mk | 4 ++++
 2 files changed, 10 insertions(+)
package/dnsmasq/Config.in +6 -0
index 8921fc629d..ea733d964e 100644
@@ -27,6 +27,12 @@ config BR2_PACKAGE_DNSMASQ_DNSSEC
 	help
 	  Enable DNSSEC validation and caching support.
 
+config BR2_PACKAGE_DNSMASQ_CHAOS
+	bool "Enable identification support"
+	default n
+	help
+	  Report *.bind CHAOS info to clients.
+
 config BR2_PACKAGE_DNSMASQ_IDN
 	bool "IDN support"
 	depends on BR2_USE_WCHAR
package/dnsmasq/dnsmasq.mk +4 -0
index 9f96030eb6..dd2b5eb615 100644
@@ -30,6 +30,10 @@ ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y)
 DNSMASQ_COPTS += -DNO_TFTP
 endif
 
+ifneq ($(BR2_PACKAGE_DNSMASQ_CHAOS),y)
+DNSMASQ_COPTS += -DNO_ID
+endif
+
 # NLS requires IDN so only enable it (i18n) when IDN is true
 ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
 DNSMASQ_DEPENDENCIES += libidn $(TARGET_NLS_DEPENDENCIES)
Signature · 1 line
2.14.2
#1 lore raw

PATCH 2/2 dnsmasq: Disable CHAOS by default

Hi Jeroen,

Quoted 2 lines · Jeroen Roovers

dnsmasq exposes its version and some statistics through DNS, a features that is configurable only at build time and is enabled by default.

Your sign-off is missing.

Quoted 10 lines
---
 package/dnsmasq/Config.in  | 6 ++++++
 package/dnsmasq/dnsmasq.mk | 4 ++++
 2 files changed, 10 insertions(+)
package/dnsmasq/Config.in +0 -0
index 8921fc629d..ea733d964e 100644

package/dnsmasq/Config.in config BR2_PACKAGE_DNSMASQ_DNSSEC · line 32

Quoted 6 lines
package/dnsmasq/Config.in +3 -0
@@ -27,6 +27,12 @@ config BR2_PACKAGE_DNSMASQ_DNSSEC
 	help
 	  Enable DNSSEC validation and caching support.
 
+config BR2_PACKAGE_DNSMASQ_CHAOS
+	bool "Enable identification support"
+	default n

This is the default for kconfig symbols.

Quoted 11 lines
package/dnsmasq/Config.in +3 -0
+	help
+	  Report *.bind CHAOS info to clients.
+
 config BR2_PACKAGE_DNSMASQ_IDN
 	bool "IDN support"
 	depends on BR2_USE_WCHAR
package/dnsmasq/dnsmasq.mk +0 -0
index 9f96030eb6..dd2b5eb615 100644

package/dnsmasq/dnsmasq.mk ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y) · line 39

Quoted 10 lines
package/dnsmasq/dnsmasq.mk +4 -0
@@ -30,6 +30,10 @@ ifneq ($(BR2_PACKAGE_DNSMASQ_TFTP),y)
 DNSMASQ_COPTS += -DNO_TFTP
 endif
 
+ifneq ($(BR2_PACKAGE_DNSMASQ_CHAOS),y)
+DNSMASQ_COPTS += -DNO_ID
+endif
+
 # NLS requires IDN so only enable it (i18n) when IDN is true
 ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
 DNSMASQ_DEPENDENCIES += libidn $(TARGET_NLS_DEPENDENCIES)

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -