Do not send pid through socket message for security 73/219673/1 submit/tizen_5.5/20191212.092802
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 06:31:39 +0000 (15:31 +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 8e9e217fee8259881574300d161fe819ca1ceabf..5efd6f95b6a75cd7e4b71ad3d9c310509f99fc2a 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 4da30f32c6fbba86624fcef48f10bec09d26d492..f4bf264eb6ca2d580c5bca2456402abdeeaceb76 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) {