Added missing handler for executable path retrieval message
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 24 May 2013 15:24:46 +0000 (17:24 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:19 +0000 (17:13 +0100)
[Issue#] SSDWSSP-274
[Feature/Bug] N/A
[Problem] SECURITY_SERVER_MSG_TYPE_EXE_PATH_REQUEST is not handled
[Cause] Incorrectly resolved conflict. Part of code lost.
[Solution] Missing handler restored

[Verification] Build & install. Run security-server-tests-client-smack
--regexp=tc06_check_privilege_by_sockfd. Security server logs should contain
valid executable path in lines starting with SS_SMACK. There should be no
"Unknown msg ID" message in dlog

Change-Id: I8e384e645291a0563a1ffd4ce47496742e756742

src/server/security-server-main.c

index 6881c37..594d6a8 100644 (file)
@@ -1582,6 +1582,12 @@ void *security_server_thread(void *param)
                     SECURITY_SERVER_RETURN_CODE_ACCESS_DENIED);
             }
             break;
+
+        case SECURITY_SERVER_MSG_TYPE_EXE_PATH_REQUEST:
+            SEC_SVR_DBG("Server: get executable path by pid request received");
+            process_exe_path_request(client_sockfd);
+            break;
+
         /************************************************************************************************/
         /* Just for test. This code must be removed on release */
         case SECURITY_SERVER_MSG_TYPE_GET_ALL_COOKIES_REQUEST: