Changed to be used in system daemon 81/137581/2
authorjkjo92 <jkjo92@samsung.com>
Thu, 6 Jul 2017 11:48:13 +0000 (20:48 +0900)
committerjkjo92 <jkjo92@samsung.com>
Fri, 7 Jul 2017 06:39:19 +0000 (15:39 +0900)
Change-Id: Id437aa6d8e1bb72d8570e6da986e5669e1368179
Signed-off-by: jkjo92 <jkjo92@samsung.com>
packaging/fido-client.spec [changed mode: 0644->0755]
packaging/fido.service [changed mode: 0644->0755]
packaging/org.tizen.fido.service [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 24d5820..0e57577
@@ -123,6 +123,9 @@ install -m 0644 %SOURCE1 %{buildroot}/usr/share/dbus-1/system-services/org.tizen
 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
 install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
 
+mkdir -p %{buildroot}%{_unitdir}
+install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/fido.service
+
 mkdir -p %{buildroot}/usr/share/dbus-1/system-services
 install -m 0644 %SOURCE4 %{buildroot}/usr/share/dbus-1/system-services/org.tizen.dummyasm.service
 
@@ -175,6 +178,7 @@ chsmack -a '_' %{_libdir}/fido/asm/
 
 %if "%{?tizen_version}" == "3.0"
 %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.fido.service
+%attr(0644,root,root) %{_unitdir}/fido.service
 
 %else
 %{_libdir}/systemd/system/org.tizen.fido.service
old mode 100644 (file)
new mode 100755 (executable)
index 6d09e27..3ef170d
@@ -1,9 +1,10 @@
 [Unit]
 Description=FIDO Client service
-After=tizen-runtime.target
-Requires=tizen-runtime.target
 
 [Service]
+User=service_fw
+Gruop=service_fw
+SmackProcessLabel=System
 Type=dbus
 BusName=org.tizen.fido
 ExecStart=/usr/bin/fido-service
old mode 100644 (file)
new mode 100755 (executable)
index 2bd3ab3..c8ab4ba
@@ -3,6 +3,5 @@ Description=FIDO Service D-Bus
 
 [D-BUS Service]
 Name=org.tizen.fido
-Exec=/usr/bin/fido-service
-User=service_fw
-Group=service_fw
+Exec=/bin/false
+SystemdService=fido.service