From f84d14659501e1614f4587d503ef72ae80084500 Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Wed, 21 Aug 2013 12:47:47 +0800 Subject: Add dbus policy conf By default, dbus will reject own bus name request, this patch add a dbus policy conf to make it's allowed to own the bus name and request send to it. Bug: https://bugs.tizen.org/jira/browse/TDIST-268 Change-Id: If2a831778175cb5feab8ed63295df76326e16cd3 Signed-off-by: Chengwei Yang --- com.samsung.omadsagent.conf | 10 ++++++++++ oma-ds-agent.manifest | 1 + packaging/oma-ds-agent.changes | 3 +++ packaging/oma-ds-agent.spec | 1 + src/agent/CMakeLists.txt | 1 + 5 files changed, 16 insertions(+) create mode 100644 com.samsung.omadsagent.conf diff --git a/com.samsung.omadsagent.conf b/com.samsung.omadsagent.conf new file mode 100644 index 0000000..ae996fa --- /dev/null +++ b/com.samsung.omadsagent.conf @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/oma-ds-agent.manifest b/oma-ds-agent.manifest index d0ef48a..76626bf 100755 --- a/oma-ds-agent.manifest +++ b/oma-ds-agent.manifest @@ -17,6 +17,7 @@ + diff --git a/packaging/oma-ds-agent.changes b/packaging/oma-ds-agent.changes index db80206..2d14198 100644 --- a/packaging/oma-ds-agent.changes +++ b/packaging/oma-ds-agent.changes @@ -1,3 +1,6 @@ +* Wed Aug 21 2013 Chengwei Yang +- Add dbus policy conf + * Wed Aug 21 2013 Chengwei Yang - Move systemd unit out of packaging diff --git a/packaging/oma-ds-agent.spec b/packaging/oma-ds-agent.spec index d3fbf7b..1a2ffec 100755 --- a/packaging/oma-ds-agent.spec +++ b/packaging/oma-ds-agent.spec @@ -119,6 +119,7 @@ rm -rf /usr/share/oma-ds-cfg %defattr(644,root,root) /usr/lib/systemd/system/oma-ds-agent.service /usr/lib/systemd/system/graphical.target.wants/oma-ds-agent.service +/etc/dbus-1/system.d/com.samsung.omadsagent.conf %files -n ds-public-plugins %manifest ds-public-plugins.manifest diff --git a/src/agent/CMakeLists.txt b/src/agent/CMakeLists.txt index 5588bdb..4c98e87 100755 --- a/src/agent/CMakeLists.txt +++ b/src/agent/CMakeLists.txt @@ -73,6 +73,7 @@ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/oma-ds-cfg DESTINATION /usr/share) # install oma ds dbus file INSTALL(FILES ${CMAKE_SOURCE_DIR}/com.samsung.omadsagent.service DESTINATION /usr/share/dbus-1/services) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/com.samsung.omadsagent.conf DESTINATION /etc/dbus-1/system.d) # install systemd unit INSTALL(FILES ${CMAKE_SOURCE_DIR}/oma-ds-agent.service DESTINATION /usr/lib/systemd/system) -- cgit v1.2.3