HPS: Add D-bus configuration for bt-httpproxy 89/59489/2
authorh.sandeep <h.sandeep@samsung.com>
Tue, 16 Feb 2016 04:58:14 +0000 (10:28 +0530)
committerPyun DoHyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 03:07:08 +0000 (20:07 -0700)
Change-Id: I0fa6846075718fdb5650bfd5566f981554f8576c
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
bt-httpproxy/CMakeLists.txt
bt-httpproxy/bluetooth-frwk-httpproxy.conf [new file with mode: 0644]
packaging/bluetooth-frwk.spec

index d9c5053..a3dd39b 100644 (file)
@@ -45,4 +45,6 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${hps_pkgs_LDFLAGS} -L${CMAKE_CURRENT_SOUR
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.httpproxy.service DESTINATION share/dbus-1/system-services)
 
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-frwk-httpproxy.conf DESTINATION /etc/dbus-1/system.d)
+
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
diff --git a/bt-httpproxy/bluetooth-frwk-httpproxy.conf b/bt-httpproxy/bluetooth-frwk-httpproxy.conf
new file mode 100644 (file)
index 0000000..6f0463b
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+    <policy user="root">
+        <allow own="org.projectx.httpproxy"/>
+    </policy>
+    <policy at_console="true">
+        <allow send_destination="org.projectx.httpproxy" />
+    </policy>
+    <policy context="default">
+        <allow send_destination="org.projectx.httpproxy" />
+    </policy>
+</busconfig>
+
index c15b637..58b770b 100644 (file)
@@ -284,6 +284,7 @@ sed -i 's/%TZ_SYS_DEFAULT_USER/app/' %{buildroot}%{_datadir}/dbus-1/system-servi
 %{_bindir}/bt-httpproxy
 %{_datadir}/license/bluetooth-frwk-httpproxy
 %{_datadir}/dbus-1/system-services/org.projectx.httpproxy.service
+%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-httpproxy.conf
 
 %files core
 %manifest %{name}.manifest