From 0b607cfc023522f18d9fa115b12c4cdcf0ec4b56 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 18 Sep 2018 10:06:25 +0900 Subject: Remove calling getpgid function Before AMD sends the result, AMD gets the process group ID of the callee process. Getting pgid in the caller side is not necessary. If the app process gets the process group ID of the callee, SMACK issue is occurred. Change-Id: Ie61c9abd8a0051cac8b3355b1d38c88ab29d4c85 Signed-off-by: Hwankyu Jhun --- src/launch_with_result.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/launch_with_result.c b/src/launch_with_result.c index 21e471ba..36ba302f 100644 --- a/src/launch_with_result.c +++ b/src/launch_with_result.c @@ -135,7 +135,6 @@ static int __call_app_result_callback(bundle *kb, int is_cancel, { app_resultcb_info_t *new_info; app_resultcb_info_t *info; - int pgid; const char *fwdpid_str; const char *num_str; int num; @@ -156,20 +155,7 @@ static int __call_app_result_callback(bundle *kb, int is_cancel, if (!info || launched_pid < 0) { _E("reject by pid - wait pid = %d, recvd pid = %d", getpid(), launched_pid); - - /* second chance - support app launched by shell script*/ - pgid = getpgid(launched_pid); - if (pgid <= 1) { - _E("Failed to get process group id. launched_pid(%d)", - launched_pid); - return -1; - } - - info = __find_resultcb(pgid, num); - if (!info) { - _E("second chance : also reject pgid - %d", pgid); - return -1; - } + return -1; } if (info->reply_cb == NULL) { -- cgit v1.2.3