summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--com.samsung.omadmagent.conf10
-rwxr-xr-xoma-dm-agent.manifest1
-rw-r--r--packaging/oma-dm-agent.changes3
-rwxr-xr-xpackaging/oma-dm-agent.spec1
-rwxr-xr-xsrc/agent/CMakeLists.txt1
5 files changed, 16 insertions, 0 deletions
diff --git a/com.samsung.omadmagent.conf b/com.samsung.omadmagent.conf
new file mode 100644
index 0000000..5e2dd17
--- /dev/null
+++ b/com.samsung.omadmagent.conf
@@ -0,0 +1,10 @@
+<!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="com.samsung.omadmagent"/>
+ </policy>
+ <policy context="default">
+ <allow send_destination="com.samsung.omadmagent"/>
+ </policy>
+</busconfig>
diff --git a/oma-dm-agent.manifest b/oma-dm-agent.manifest
index 9acbc0b..4e81f56 100755
--- a/oma-dm-agent.manifest
+++ b/oma-dm-agent.manifest
@@ -40,6 +40,7 @@
<filesystem path="/etc/rc.d/rc5.d/S91oma-dm-agent" label="_" exec_label="none"/>
<filesystem path="/etc/init.d/oma-dm" label="_" exec_label="none"/>
<filesystem path="/usr/share/dbus-1/system-services/com.samsung.omadmagent.service" label="_"/>
+ <filesystem path="/etc/dbus-1/system.d/com.samsung.omadmagent.service" label="_"/>
</assign>
<request>
<domain name="oma-dm-agent" />
diff --git a/packaging/oma-dm-agent.changes b/packaging/oma-dm-agent.changes
index 333a6ba..7773862 100644
--- a/packaging/oma-dm-agent.changes
+++ b/packaging/oma-dm-agent.changes
@@ -1,3 +1,6 @@
+Tue Aug 13 2013 Chengwei Yang <chengwei.yang@intel.com>
+- Add dbus policy conf
+
Mon Aug 12 2013 Chengwei Yang <chengwei.yang@intel.com>
- Install to system-wide dbus service directory, TDIST-295
diff --git a/packaging/oma-dm-agent.spec b/packaging/oma-dm-agent.spec
index eeb4592..ba16da5 100755
--- a/packaging/oma-dm-agent.spec
+++ b/packaging/oma-dm-agent.spec
@@ -135,6 +135,7 @@ rm -rf /usr/share/oma-dm-cfg
%manifest oma-dm-agent.manifest
%defattr(-,root,root,-)
/usr/share/dbus-1/system-services/com.samsung.omadmagent.service
+/etc/dbus-1/system.d/com.samsung.omadmagent.conf
/usr/bin/oma-dm-agent
/usr/share/oma-dm-cfg/ddf/*
diff --git a/src/agent/CMakeLists.txt b/src/agent/CMakeLists.txt
index 4879927..44d480f 100755
--- a/src/agent/CMakeLists.txt
+++ b/src/agent/CMakeLists.txt
@@ -79,6 +79,7 @@ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/oma-dm-cfg DESTINATION /usr/share)
# install oma ds dbus file
INSTALL(FILES ${CMAKE_SOURCE_DIR}/com.samsung.omadmagent.service DESTINATION /usr/share/dbus-1/system-services)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/com.samsung.omadmagent.conf DESTINATION /etc/dbus-1/system.d)
# install booting script file
INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/${PROJECT_NAME} DESTINATION /etc/init.d/)