dnsmasq: adapt to non-root ntpd
authorDaniel Golle <daniel@makrotopia.org>
Sun, 25 Oct 2020 12:44:50 +0000 (12:44 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 25 Oct 2020 13:01:35 +0000 (13:01 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasqsec_hotplug_acl.json [new file with mode: 0644]

index fe68378f4823cc8d63882c24d2db5c4c1d98c93e..57f6f0cef971652964ddc3ab1ee72dc319162cf3 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=dnsmasq
 PKG_UPSTREAM_VERSION:=2.82
 PKG_VERSION:=$(subst test,~~test,$(subst rc,~rc,$(PKG_UPSTREAM_VERSION)))
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).tar.xz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
@@ -180,6 +180,7 @@ define Package/dnsmasq/install
        $(INSTALL_BIN) ./files/dhcp-script.sh $(1)/usr/lib/dnsmasq/dhcp-script.sh
        $(INSTALL_DIR) $(1)/usr/share/acl.d
        $(INSTALL_DATA) ./files/dnsmasq_acl.json $(1)/usr/share/acl.d/
+       $(INSTALL_DATA) ./files/dnsmasqsec_hotplug_acl.json $(1)/usr/share/acl.d/
        $(INSTALL_DIR) $(1)/etc/uci-defaults
        $(INSTALL_BIN) ./files/50-dnsmasq-migrate-resolv-conf-auto.sh $(1)/etc/uci-defaults
 endef
diff --git a/package/network/services/dnsmasq/files/dnsmasqsec_hotplug_acl.json b/package/network/services/dnsmasq/files/dnsmasqsec_hotplug_acl.json
new file mode 100644 (file)
index 0000000..a5eac39
--- /dev/null
@@ -0,0 +1,8 @@
+{
+       "user": "ntpd",
+       "access": {
+               "service": {
+                       "methods": [ "signal" ]
+               }
+       }
+}