summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2019-12-09 14:07:20 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2019-12-09 14:07:20 +0900
commit79b8030f997d860f65fd647bbc92fc42ae45e65b (patch)
tree10b3cb523f881fff222a712ff4ecede69a160b0b
parent626843ec1b67313271a62f4bc2c686ef8257224e (diff)
downloadcamera-79b8030f997d860f65fd647bbc92fc42ae45e65b.tar.gz
camera-79b8030f997d860f65fd647bbc92fc42ae45e65b.tar.bz2
camera-79b8030f997d860f65fd647bbc92fc42ae45e65b.zip
Do not send pid through socket message for securitysubmit/tizen/20191212.093208accepted/tizen/unified/20191213.042440
[Version] 0.4.27 [Profile] Common [Issue Type] Security Change-Id: Ie674d3497ea81c13ab282a6f069da458d33e0ed5 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--packaging/capi-media-camera.spec2
-rw-r--r--src/camera.c4
2 files changed, 1 insertions, 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) {