Disable PrivateNetwork=1 as it breaks sensor hotplug.

This commit is contained in:
Richard Hughes 2012-03-29 16:04:25 +01:00
parent c73ed9676c
commit a3f05c646f
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 4e28e25feaf611a4366fef88fec885657bfd76bc Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Thu, 29 Mar 2012 15:56:48 +0100
Subject: [PATCH] Do not enable PrivateNetwork=yes as it breaks hotplugging
devices
We think that udev's AF_NETLINK messages are being filtered when network
namespacing is on.
---
data/colord.service.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/data/colord.service.in b/data/colord.service.in
index 8a4b43d..8301b40 100644
--- a/data/colord.service.in
+++ b/data/colord.service.in
@@ -6,7 +6,9 @@ Type=dbus
BusName=org.freedesktop.ColorManager
ExecStart=@servicedir@/colord
User=@daemon_user@
-PrivateNetwork=yes
+# We think that udev's AF_NETLINK messages are being filtered when
+# network namespacing is on.
+# PrivateNetwork=yes
PrivateTmp=yes
[Install]
--
1.7.9.3

View File

@ -1,10 +1,11 @@
Summary: Color daemon
Name: colord
Version: 0.1.18
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+ and LGPLv2+
URL: http://www.freedesktop.org/software/colord/
Source0: http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
Patch0: 0001-Do-not-enable-PrivateNetwork-yes-as-it-breaks-hotplu.patch
BuildRequires: dbus-devel
BuildRequires: docbook-utils
@ -38,6 +39,7 @@ Files for development with %{name}.
%prep
%setup -q
%patch0 -p1 -b .fix-device-hotplug
%build
%configure \
@ -111,6 +113,9 @@ exit 0
%{_datadir}/vala/vapi/*.vapi
%changelog
* Thu Mar 29 2012 Richard Hughes <richard@hughsie.com> 0.1.18-2
- Disable PrivateNetwork=1 as it breaks sensor hotplug.
* Thu Mar 15 2012 Richard Hughes <richard@hughsie.com> 0.1.18-1
- New upstream version
- Add a Manager.CreateProfileWithFd() method for QtDBus