- Update D-Bus config file for recent D-Bus changes

This commit is contained in:
Bastien Nocera 2008-12-09 14:21:37 +00:00
parent 487ae1a500
commit 23302b5afe
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From dac2801bd2aad9568b75c2d38d86272e29528b0e Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 9 Dec 2008 14:18:39 +0000
Subject: [PATCH] Update D-Bus config file
Following the recent changes in D-Bus, the configuration file
needs to be a bit more explicit.
---
data/net.reactivated.Fprint.conf | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/data/net.reactivated.Fprint.conf b/data/net.reactivated.Fprint.conf
index dabefa0..1fd0c06 100644
--- a/data/net.reactivated.Fprint.conf
+++ b/data/net.reactivated.Fprint.conf
@@ -10,4 +10,10 @@
<allow own="net.reactivated.Fprint"/>
</policy>
+ <!-- Anyone can talk to the service -->
+ <policy context="default">
+ <allow send_destination="net.reactivated.Fprint"/>
+ <allow send_interface="net.reactivated.Fprint"/>
+ </policy>
+
</busconfig>
--
1.6.0.4

View File

@ -3,7 +3,7 @@
Name: fprintd
Version: 0.1
Release: 3.git%{short_hash}%{?dist}
Release: 4.git%{short_hash}%{?dist}
Summary: D-Bus service for Fingerprint reader access
Group: System Environment/Daemons
@ -16,6 +16,7 @@ License: GPLv2+
Source0: fprintd-0.1-%{short_hash}.tar.bz2
# FIXME remove when we have a newer libfprint
Patch0: old-libfprint.patch
Patch1: 0001-Update-D-Bus-config-file.patch
Url: http://www.reactivated.net/fprint/wiki/Fprintd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -58,6 +59,7 @@ fingerprint readers access.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam
@ -92,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gtk-doc/html/fprintd
%changelog
* Tue Dec 09 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-4.git43fe72a2aa
- Update D-Bus config file for recent D-Bus changes
* Thu Dec 04 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-3.git43fe72a2aa
- Update following comments in the review