From f5439d11afd482c5b2b267f4a252a80517ddaa03 Mon Sep 17 00:00:00 2001 From: jkjo92 Date: Thu, 6 Jul 2017 20:48:13 +0900 Subject: [PATCH] Changed to be used in system daemon Change-Id: Id437aa6d8e1bb72d8570e6da986e5669e1368179 Signed-off-by: jkjo92 --- packaging/fido-client.spec | 4 ++++ packaging/fido.service | 5 +++-- packaging/org.tizen.fido.service | 5 ++--- 3 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 packaging/fido-client.spec mode change 100644 => 100755 packaging/fido.service mode change 100644 => 100755 packaging/org.tizen.fido.service diff --git a/packaging/fido-client.spec b/packaging/fido-client.spec old mode 100644 new mode 100755 index 24d5820..0e57577 --- a/packaging/fido-client.spec +++ b/packaging/fido-client.spec @@ -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 diff --git a/packaging/fido.service b/packaging/fido.service old mode 100644 new mode 100755 index 6d09e27..3ef170d --- a/packaging/fido.service +++ b/packaging/fido.service @@ -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 diff --git a/packaging/org.tizen.fido.service b/packaging/org.tizen.fido.service old mode 100644 new mode 100755 index 2bd3ab3..c8ab4ba --- a/packaging/org.tizen.fido.service +++ b/packaging/org.tizen.fido.service @@ -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 -- 2.7.4