Add conf file for dbus policy 41/177541/1
authorInkyun Kil <inkyun.kil@samsung.com>
Wed, 2 May 2018 01:07:58 +0000 (10:07 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Wed, 2 May 2018 01:07:58 +0000 (10:07 +0900)
Change-Id: I06b84f1d54fe9b6e500c47309456525f4160a850
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
CMakeLists.txt
message-port.conf.in [new file with mode: 0755]
packaging/message-port.spec

index dbe5ee0..65b3c11 100644 (file)
@@ -56,6 +56,8 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${th
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/capi-${this_target}.pc.in ${CMAKE_SOURCE_DIR}/capi-${this_target}.pc @ONLY)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/capi-${this_target}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+CONFIGURE_FILE(${PROJECT_NAME}.conf.in ${PROJECT_NAME}.conf @ONLY)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/session.d/)
 
 INSTALL(TARGETS ${this_target} DESTINATION ${LIB_INSTALL_DIR})
 
diff --git a/message-port.conf.in b/message-port.conf.in
new file mode 100755 (executable)
index 0000000..388fc16
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+        "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+       <policy context="default">
+               <allow send_path="/org/tizen/messageport"/>
+       </policy>
+</busconfig>
index 4f5b0fb..d843e58 100755 (executable)
@@ -57,6 +57,7 @@ rm -rf %{buildroot}
 %manifest %{name}.manifest
 %attr(0644,root,root) %{_libdir}/lib%{name}.so.*
 %attr(0644,root,root) %{_libdir}/libcapi-message-port.so.*
+%config %{_sysconfdir}/dbus-1/session.d/message-port.conf
 %license LICENSE.APLv2
 
 %files devel