modify UID/GID for security 46/67646/1 accepted/tizen/common/20160428.144323 accepted/tizen/ivi/20160428.081303 accepted/tizen/mobile/20160428.081231 accepted/tizen/tv/20160428.081247 accepted/tizen/wearable/20160428.081242 submit/tizen/20160428.003101
authorHyihong Chae <hh.chae@samsung.com>
Thu, 28 Apr 2016 00:19:36 +0000 (09:19 +0900)
committerHyihong Chae <hh.chae@samsung.com>
Thu, 28 Apr 2016 00:19:36 +0000 (09:19 +0900)
Change-Id: Ifc96b38beb3e8141ede08f6331f29b08d4907b6e
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
packaging/mtp-initiator.service [changed mode: 0644->0755]
packaging/mtp-initiator.sh [new file with mode: 0755]
packaging/mtp-initiator.spec

old mode 100644 (file)
new mode 100755 (executable)
index b98620f..99422a7
@@ -2,8 +2,8 @@
 Description=MTP initiator
 
 [Service]
-User=system
-Group=system
+User=network_fw
+Group=network_fw
 Type=simple
 ExecStart=/usr/bin/mtp-initiator
 KillMode=process
diff --git a/packaging/mtp-initiator.sh b/packaging/mtp-initiator.sh
new file mode 100755 (executable)
index 0000000..92ff018
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+value=`%{_bindir}/systemctl is-active deviced`
+
+if [ $value == "active" ]; then
+       %{_bindir}/systemctl start mtp-initiator.service
+fi
\ No newline at end of file
index dd7698b6e2c116db57d9f526d544dcb69f7fbae9..9892ec3978ee1381369708e290820a1bcbcf6bc8 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       mtp-initiator
 Summary:    mtp(media transfer protocol) initiator
-Version:    1.4.8
+Version:    1.4.9
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
@@ -20,6 +20,7 @@ BuildRequires:  pkgconfig(sqlite3)
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  python
 BuildRequires:  python-xml
+Requires:  security-config
 
 %description
 A mtp-initiator