From: Hwankyu Jhun Date: Thu, 4 Feb 2021 04:30:50 +0000 (+0900) Subject: Fix handling access control of component port X-Git-Tag: submit/tizen/20210204.091602~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c79e0aada7fa5518b0c512cc8abd8b7d113114a5;p=platform%2Fcore%2Fappfw%2Fcomponent-based-application.git Fix handling access control of component port Before sending the result, the server should receive the request data. Even though the result is "permission denied", the result can be "I/O error" When the client is still sending. Change-Id: I15897fd821129dc3de1539fe6d6860d754966e46 Signed-off-by: Hwankyu Jhun --- diff --git a/component_based/port/server.cc b/component_based/port/server.cc index 13078bf..c392db9 100644 --- a/component_based/port/server.cc +++ b/component_based/port/server.cc @@ -141,6 +141,9 @@ gboolean Server::GIOFunc(GIOChannel* source, GIOCondition cond, gpointer data) { int ret = handle->CheckPrivilege(client->GetFd()); if (ret != 0) { _E("Request is denied"); + std::vector buf; + client->Recv(buf); + std::vector dummy; Response res(ret, dummy); tizen_base::Parcel res_parcel;