Modify bt-service's permission as system 78/46278/1 accepted/tizen/mobile/20150819.072913 accepted/tizen/tv/20150819.073011 accepted/tizen/wearable/20150819.072951 submit/tizen_mobile/20150819.043945 submit/tizen_tv/20150819.043940 submit/tizen_wearable/20150819.043935
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Aug 2015 04:36:49 +0000 (13:36 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Aug 2015 04:36:49 +0000 (13:36 +0900)
Change-Id: I2f9bc99fcf183da211abb44156e5e934a402bc14
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/CMakeLists.txt
bt-service/bluetooth-frwk-service.conf.in
bt-service/org.projectx.bt.service
bt-service/org.projectx.bt.service.in [deleted file]
packaging/bluetooth-frwk-mobile.service
packaging/bluetooth-frwk.spec

index 3fc3231..81014d4 100644 (file)
@@ -126,7 +126,7 @@ ELSE(LIBNOTIFY_SUPPORT)
        TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${service_pkgs_LDFLAGS})
 ENDIF(LIBNOTIFY_SUPPORT)
 
-CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.bt.service.in ${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.bt.service)
+#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.bt.service.in ${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.bt.service)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.projectx.bt.service DESTINATION share/dbus-1/system-services)
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
 
index 03f609b..86bcd8a 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
-    <policy group="@TZ_SYS_USER_GROUP@">
+    <policy group="system">
         <allow own="org.projectx.bt"/>
         <allow own="org.projectx.bt_event"/>
        <allow send_type="method_call"/>
index d43d517..f612e67 100644 (file)
@@ -1,5 +1,6 @@
 [D-BUS Service]
 Name=org.projectx.bt
 Exec=/bin/false
-User=guest
+User=system
+Group=system
 SystemdService=bluetooth-frwk.service
diff --git a/bt-service/org.projectx.bt.service.in b/bt-service/org.projectx.bt.service.in
deleted file mode 100644 (file)
index 799c82b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.projectx.bt
-Exec=/bin/sh -c 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket; exec /usr/bin/bt-service'
-User=guest
index 09010da..ddcb51c 100644 (file)
@@ -8,6 +8,8 @@ Type=dbus
 BusName=org.projectx.bt
 ExecStart=/usr/bin/bt-service
 KillMode=process
+User=system
+Group=system
 
 [Install]
 WantedBy=multi-user.target
index 31ec7d5..531c3c9 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:       bluetooth-frwk
 Summary:    Bluetooth framework for BlueZ and Obexd. This package is Bluetooth framework based on BlueZ and Obexd stack.
-Version:    0.2.150
+Version:    0.2.151
 Release:    1
 Group:      Network & Connectivity/Bluetooth
 License:    Apache-2.0
@@ -56,6 +56,7 @@ BuildRequires:  cmake
 BuildRequires:  pkgconfig(libprivilege-control)
 BuildRequires:  pkgconfig(cynara-client)
 BuildRequires:  pkgconfig(cynara-creds-gdbus)
+BuildRequires:  pkgconfig(libtzplatform-config)
 
 Requires(post): /usr/bin/vconftool
 Requires(post): /sbin/ldconfig