From: Jung Ick Guack Date: Thu, 24 Sep 2015 06:05:40 +0000 (+0900) Subject: Disabled using shared memory. X-Git-Tag: submit/tizen/20150924.061218^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87f41c0475387c4cd7c48b92aa7dd90e1704c75e;p=platform%2Fframework%2Fweb%2Fbrowser-provider.git Disabled using shared memory. shmget is not working from application becuase of smack deny, until solve the issue, browser provider need to use only socket. Change-Id: I8666398d92019ea654b07ea8b6c122f22add0f8c Signed-off-by: Jung Ick Guack --- diff --git a/provider/browser-provider-shm.c b/provider/browser-provider-shm.c index 5cef2a3..5919b14 100644 --- a/provider/browser-provider-shm.c +++ b/provider/browser-provider-shm.c @@ -90,6 +90,7 @@ int bp_shm_read_copy(bp_shm_defs *shm, unsigned char **value, int bp_shm_is_ready(bp_shm_defs *shm, int length) { +#ifndef NO_USE_SHM if (shm != NULL) { if (shm->id < 0 || shm->mem == NULL) { if (bp_shm_alloc(shm) < 0) @@ -98,5 +99,6 @@ int bp_shm_is_ready(bp_shm_defs *shm, int length) if (shm->mem != NULL && length <= BASIC_SHM_SIZE) return 0; } +#endif return -1; } diff --git a/provider/include/browser-provider-shm.h b/provider/include/browser-provider-shm.h index cd264e4..207fc26 100755 --- a/provider/include/browser-provider-shm.h +++ b/provider/include/browser-provider-shm.h @@ -18,6 +18,7 @@ #define BROWSER_PROVIDER_SHM_H #define BASIC_SHM_SIZE 3145728 //3M // 1445760 (720*502*4) +#define NO_USE_SHM //Not using bp_shm_xxx, smack deny during the shmget on browser application. typedef struct { int key;