Do not send pid through socket message for security 51/219651/1 accepted/tizen/unified/20191213.042440 submit/tizen/20191212.093208
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 9 Dec 2019 05:07:20 +0000 (14:07 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 9 Dec 2019 05:07:20 +0000 (14:07 +0900)
[Version] 0.4.27
[Profile] Common
[Issue Type] Security

Change-Id: Ie674d3497ea81c13ab282a6f069da458d33e0ed5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-camera.spec
src/camera.c

index 8e9e217..5efd6f9 100644 (file)
@@ -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
index 4da30f3..f4bf264 100644 (file)
@@ -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) {