change daemon to non-root 99/147599/3
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 5 Sep 2017 05:21:09 +0000 (14:21 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Tue, 5 Sep 2017 05:36:41 +0000 (14:36 +0900)
Change-Id: I84cab04c3e231fcc198bf8a9a027c3884cf7706a
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
packaging/org.tizen.smartreply.service
packaging/smartreply-service.spec

index 11c0680..c559162 100755 (executable)
@@ -3,3 +3,4 @@ Name=org.tizen.smartreply
 Exec=/usr/bin/smartreplyd
 User=ui_fw
 Group=ui_fw
+SmackProcessLabel=System
\ No newline at end of file
index ca14b15..e6440a3 100755 (executable)
@@ -110,19 +110,19 @@ systemctl daemon-reload
 
 %files
 %manifest packaging/%{name}.manifest
-%defattr(-,ui_fw,ui_fw,-)
+%defattr(-,root,root,-)
 %{_libdir}/libsmart-reply-engine-*
 %{_bindir}/*
 %{_datadir}/dbus-1/system-services/org.tizen.smartreply.service
 %{_datadir}/packages/*.xml
 %license LICENSE
 
-%defattr(0755,system,system,-)
+%defattr(0755,root,root,-)
 %{_datadir}/%{name}/*
 %config(noreplace) /opt/usr/data/smartreply-service
 %config(noreplace) /opt/usr/data/smartreply-service/honorific_ko_KR.db*
 %config(noreplace) /opt/usr/data/smartreply-service/personal_ko_KR.db*
 %config(noreplace) /opt/usr/data/smartreply-service/personal_en_US.db*
 
-%defattr(0700,ui_fw,ui_fw,-)
+%defattr(0755,root,root,-)
 /usr/system/RestoreDir/softreset/smartreply_softreset.sh