Apply on-demand lauch and fix svace issue 93/142093/3 accepted/tizen/unified/20170810.171544 submit/tizen/20170808.050043
authorjkjo92 <jkjo92@samsung.com>
Wed, 2 Aug 2017 11:49:08 +0000 (20:49 +0900)
committerjkjo92 <jkjo92@samsung.com>
Tue, 8 Aug 2017 03:23:27 +0000 (12:23 +0900)
Change-Id: I1737f44e46bac9776f165bba3f5444b68e55cfc9
Signed-off-by: jkjo92 <jkjo92@samsung.com>
packaging/fido-asm.service [changed mode: 0644->0755]
packaging/fido-asm.spec [changed mode: 0644->0755]
packaging/org.tizen.fido-asm.service [changed mode: 0644->0755]
server/auth_discovery/src/BoundADProvider.cpp
silent_auth/silent_auth_entry.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 9cfc861..a786557
@@ -1,10 +1,11 @@
 [Unit]
 Description=FIDO ASM service
-After=tizen-runtime.target
-Requires=tizen-runtime.target
 
 [Service]
 ExecStart=/usr/bin/fido-asm
+SmackProcessLabel=System
+Type=dbus
+BusName=org.tizen.fidoasm
 User=service_fw
 Group=service_fw
 
old mode 100644 (file)
new mode 100755 (executable)
index 8991840..a558177
@@ -83,9 +83,8 @@ 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}/multi-user.target.wants
+mkdir -p %{buildroot}%{_unitdir}
 install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/fido-asm.service
-%install_service multi-user.target.wants fido-asm.service
 
 mkdir -p %{buildroot}%{_libdir}/fido/asm/auth
 
@@ -166,7 +165,6 @@ rm /opt/dbspace/.fido*
 %{_bindir}/fido-asm
 %config %{_sysconfdir}/dbus-1/system.d/org.tizen.fido-asm.conf
 %attr(0644,root,root) %{_unitdir}/fido-asm.service
-%attr(0644,root,root) %{_unitdir}/multi-user.target.wants/fido-asm.service
 %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.fido-asm.service
 %{_libdir}/fido/asm/fido_asm.json
 
old mode 100644 (file)
new mode 100755 (executable)
index 3b72f51..148009d
@@ -3,6 +3,5 @@ Description=FIDO ASM Service D-BUS
 
 [D-BUS Service]
 Name=org.tizen.fidoasm
-Exec=/usr/bin/fido-asm
-User=service_fw
-Group=service_fw
+Exec=/bin/false
+SystemdService=fido-asm.service
index f2a26b8..cf1121f 100755 (executable)
@@ -298,6 +298,7 @@ BoundADProvider::loadPlugins(const std::string& dirName)
                                __stubCache->insert(std::make_pair(auth_plugin->id, stub));
 
                        }
+                       dlclose(mod);
 
 
 
old mode 100644 (file)
new mode 100755 (executable)
index ac3718f..b454eb2
@@ -881,6 +881,7 @@ processRegister(unsigned char *assert_req)
 
        if (sign_raw == NULL) {
                _ERR("FIDO SignWithPrivateKeyFile failed");
+               SAFE_DELETE(krdStr);
                SAFE_DELETE(getRegRespInfo);
                return NULL;
        }
@@ -916,6 +917,7 @@ processRegister(unsigned char *assert_req)
        }
        else {
                _INFO("setEncoder EID_UAFV1_REGISTER_RESP FAIL \n");
+               SAFE_DELETE(krdStr);
                SAFE_DELETE(getRegRespInfo->kh);
                SAFE_DELETE(getRegRespInfo);
                return NULL;
@@ -927,6 +929,7 @@ processRegister(unsigned char *assert_req)
        }
        else {
                _INFO("decode EID_UAFV1_REGISTER_RESP FAIL \n");
+               SAFE_DELETE(krdStr);
                SAFE_DELETE(getRegRespInfo);
                return NULL;
        }