From 1d03b48fa297c8e23c887e49e5ac318e5546a865 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 15 Nov 2019 12:39:21 +0100 Subject: [PATCH] dnsmasq: let dnsmasq user own its dbus service Not sure how this worked before. The dnsmasq package is installed to be run as dnsmasq user but its dbus config denies everyone except root. Fix dbus config replacing root with dnsmasq. Without this change, users observe a very frequent and annoying warning: dnsmasq[1086]: DBus error: Connection ":1.1" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to security policies in the configuration file --- srcpkgs/dnsmasq/patches/dbus.patch | 11 +++++++++++ srcpkgs/dnsmasq/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dnsmasq/patches/dbus.patch diff --git a/srcpkgs/dnsmasq/patches/dbus.patch b/srcpkgs/dnsmasq/patches/dbus.patch new file mode 100644 index 0000000000..e4b1d60709 --- /dev/null +++ b/srcpkgs/dnsmasq/patches/dbus.patch @@ -0,0 +1,11 @@ +--- dbus/dnsmasq.conf.orig 2019-11-15 12:36:44.303440024 +0100 ++++ dbus/dnsmasq.conf 2019-11-15 12:36:56.357452970 +0100 +@@ -2,7 +2,7 @@ + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> + +- ++ + + + diff --git a/srcpkgs/dnsmasq/template b/srcpkgs/dnsmasq/template index 49824891f6..121a58f92c 100644 --- a/srcpkgs/dnsmasq/template +++ b/srcpkgs/dnsmasq/template @@ -1,7 +1,7 @@ # Template file for 'dnsmasq' pkgname=dnsmasq version=2.80 -revision=4 +revision=5 conf_files="/etc/dnsmasq.conf" hostmakedepends="pkg-config" makedepends="dbus-devel libcap-devel libidn2-devel $(vopt_if dnssec nettle-devel)"