[packages/xboxdrv] dbus configuration added

jajcus jajcus at pld-linux.org
Sat Jun 20 22:24:23 CEST 2015


commit 340cec22fdf0958ebb68cab4f7562c4a1cb931f9
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Mar 9 16:44:02 2015 +0100

    dbus configuration added

 org.seul.Xboxdrv.conf | 13 +++++++++++++
 xboxdrv.spec          |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/xboxdrv.spec b/xboxdrv.spec
index 6c764c7..1860c2a 100644
--- a/xboxdrv.spec
+++ b/xboxdrv.spec
@@ -10,6 +10,7 @@ Source1:	%{name}.service
 Source2:	%{name}.init
 Source3:	%{name}.sysconfig
 Source4:	%{name}.blacklist.conf
+Source5:	org.seul.Xboxdrv.conf
 URL:		http://pingus.seul.org/~grumbel/xboxdrv/
 BuildRequires:	boost-devel
 BuildRequires:	dbus-devel
@@ -52,7 +53,8 @@ works for you there is no need to try this driver.
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{systemdunitdir}} \
-	$RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,/etc/modprobe.d}
+	$RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,/etc/modprobe.d} \
+	$RPM_BUILD_ROOT/etc/dbus-1/system.d
 
 install -p xboxdrv $RPM_BUILD_ROOT%{_bindir}
 install -p xboxdrvctl $RPM_BUILD_ROOT%{_bindir}
@@ -63,6 +65,7 @@ install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xboxdrv
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/xboxdrv.service
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/xboxdrv
 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/modprobe.d/xboxdrv.blacklist.conf
+cp -p install %{SOURCE5} $RPM_BUILD_ROOT/etc/dbus-1/system.d/org.seul.Xboxdrv.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -91,6 +94,7 @@ fi
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xboxdrv
 %{systemdunitdir}/xboxdrv.service
 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/xboxdrv.blacklist.conf
+/etc/dbus-1/system.d/org.seul.Xboxdrv.conf
 %attr(755,root,root) %{_bindir}/xboxdrv
 %attr(755,root,root) %{_bindir}/xboxdrvctl
 %{_mandir}/man1/xboxdrv.1*
diff --git a/org.seul.Xboxdrv.conf b/org.seul.Xboxdrv.conf
new file mode 100644
index 0000000..8a00272
--- /dev/null
+++ b/org.seul.Xboxdrv.conf
@@ -0,0 +1,13 @@
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+  <!-- Only root can own the service -->
+  <policy user="root">
+    <allow own="org.seul.Xboxdrv"/>
+
+    <!-- Allow all methods on interfaces -->
+    <allow send_destination="org.seul.Xboxdrv"/>
+  </policy>
+</busconfig>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xboxdrv.git/commitdiff/340cec22fdf0958ebb68cab4f7562c4a1cb931f9



More information about the pld-cvs-commit mailing list