From: DoHyun Pyun Date: Mon, 31 Jul 2017 08:25:38 +0000 (+0900) Subject: Add the dbus privilege check logic for platform APIs X-Git-Tag: accepted/tizen/unified/20170808.171419^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git;a=commitdiff_plain;h=e3be436855595c80309629c4490bcce68b4ec4e0 Add the dbus privilege check logic for platform APIs Change-Id: Idc881c48fa63e154e7d9abe83a57fe7bde2d7413 Signed-off-by: DoHyun Pyun --- diff --git a/ag-agent/bluetooth-ag-agent.conf.in b/ag-agent/bluetooth-ag-agent.conf.in index eaa7ee8..63d0b7f 100644 --- a/ag-agent/bluetooth-ag-agent.conf.in +++ b/ag-agent/bluetooth-ag-agent.conf.in @@ -10,5 +10,17 @@ + + + + + + + + + + + + diff --git a/hf-agent/CMakeLists.txt b/hf-agent/CMakeLists.txt index da878f5..1ee2094 100644 --- a/hf-agent/CMakeLists.txt +++ b/hf-agent/CMakeLists.txt @@ -25,3 +25,6 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_hf_agent_LDFLAGS}) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.bluez.hf_agent.service DESTINATION share/dbus-1/system-services) + +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-hf-agent.conf.in ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-hf-agent.conf) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-hf-agent.conf DESTINATION /etc/dbus-1/system.d) diff --git a/hf-agent/bluetooth-hf-agent.conf.in b/hf-agent/bluetooth-hf-agent.conf.in new file mode 100644 index 0000000..80b3ff2 --- /dev/null +++ b/hf-agent/bluetooth-hf-agent.conf.in @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/bluetooth-agent.spec b/packaging/bluetooth-agent.spec index 9df8a2c..73efaff 100644 --- a/packaging/bluetooth-agent.spec +++ b/packaging/bluetooth-agent.spec @@ -160,6 +160,7 @@ ln -sf %{_libdir}/systemd/system/bluetooth-pbap-agent.service %{_sysconfdir}/sys %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service %{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service %{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf +%{_sysconfdir}/dbus-1/system.d/bluetooth-hf-agent.conf %exclude %{_libdir}/systemd/system/bluetooth-map-agent.service %exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service %endif