Allow method call to pulseaudio 31/52631/2 submit/tizen_mobile/20151202.054938 submit/tizen_tv/20151202.054941 submit/tizen_wearable/20151202.054945
authorTaejin Woo <tt.woo@samsung.com>
Wed, 25 Nov 2015 08:23:39 +0000 (17:23 +0900)
committerTaejin Woo <tt.woo@samsung.com>
Thu, 26 Nov 2015 05:16:10 +0000 (14:16 +0900)
Change-Id: I9532753400e8e10ebec5e1d2f81558a55c6c67a7
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
ag-agent/CMakeLists.txt
ag-agent/bluetooth-ag-agent.conf.in [new file with mode: 0644]
packaging/bluetooth-agent.spec

index a0f9781..79f5872 100644 (file)
@@ -44,3 +44,6 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.bluez.ag_agent.service
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/voice-recognition-blacklist
                DESTINATION /opt/var/lib/bluetooth/)
+
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf.in ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf DESTINATION /etc/dbus-1/system.d)
diff --git a/ag-agent/bluetooth-ag-agent.conf.in b/ag-agent/bluetooth-ag-agent.conf.in
new file mode 100644 (file)
index 0000000..b3e45dd
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+    <policy group="system">
+    </policy>
+    <policy group="root">
+    </policy>
+    <policy group="pulse">
+           <allow own="Org.Hfp.App.Interface"/>
+           <allow send_interface="Org.Hfp.App.Interface"/>
+           <allow send_destination="Org.Hfp.App.Interface"/>
+           <allow send_type="method_call"/>
+    </policy>
+</busconfig>
+
index f4762b3..2f5efc4 100644 (file)
@@ -96,3 +96,4 @@ ln -s ../bluetooth-ag-agent.service %{buildroot}%{_unitdir}/multi-user.target.wa
 %attr(0666,-,-) /opt/var/lib/bluetooth/voice-recognition-blacklist
 %endif
 %{_datadir}/license/bluetooth-agent
+%{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf