From 79b8030f997d860f65fd647bbc92fc42ae45e65b Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Mon, 9 Dec 2019 14:07:20 +0900 Subject: [PATCH] Do not send pid through socket message for security [Version] 0.4.27 [Profile] Common [Issue Type] Security Change-Id: Ie674d3497ea81c13ab282a6f069da458d33e0ed5 Signed-off-by: Jeongmo Yang --- packaging/capi-media-camera.spec | 2 +- src/camera.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index 8e9e217..5efd6f9 100644 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -1,6 +1,6 @@ Name: capi-media-camera Summary: A Camera API -Version: 0.4.26 +Version: 0.4.27 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/camera.c b/src/camera.c index 4da30f3..f4bf264 100644 --- a/src/camera.c +++ b/src/camera.c @@ -2488,7 +2488,6 @@ int camera_create(camera_device_e device, camera_h *camera) char *send_msg = NULL; int send_ret = 0; int ret = CAMERA_ERROR_NONE; - int pid = 0; camera_cli_s *pc = NULL; tbm_bufmgr bufmgr = NULL; @@ -2508,8 +2507,6 @@ int camera_create(camera_device_e device, camera_h *camera) goto ErrorExit; } - pid = getpid(); - if (muse_client_get_module_index(MODULE_NAME, &module_index) != MM_ERROR_NONE) { LOGE("muse client get module index failed"); ret = CAMERA_ERROR_INVALID_OPERATION; @@ -2519,7 +2516,6 @@ int camera_create(camera_device_e device, camera_h *camera) send_msg = muse_core_msg_new(api, MUSE_TYPE_INT, "module", module_index, MUSE_TYPE_INT, PARAM_DEVICE_TYPE, device_type, - MUSE_TYPE_INT, "pid", pid, 0); if (!send_msg) { -- 2.7.4