From e3be436855595c80309629c4490bcce68b4ec4e0 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 31 Jul 2017 17:25:38 +0900 Subject: [PATCH] Add the dbus privilege check logic for platform APIs Change-Id: Idc881c48fa63e154e7d9abe83a57fe7bde2d7413 Signed-off-by: DoHyun Pyun --- ag-agent/bluetooth-ag-agent.conf.in | 12 ++++++++++++ hf-agent/CMakeLists.txt | 3 +++ hf-agent/bluetooth-hf-agent.conf.in | 27 +++++++++++++++++++++++++++ packaging/bluetooth-agent.spec | 1 + 4 files changed, 43 insertions(+) create mode 100644 hf-agent/bluetooth-hf-agent.conf.in 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 -- 2.7.4