Disabled using shared memory. 42/48642/1 accepted/tizen/mobile/20150925.012433 accepted/tizen/tv/20150925.012452 accepted/tizen/wearable/20150925.012501 submit/tizen/20150924.061218 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorJung Ick Guack <jiguack@gmail.com>
Thu, 24 Sep 2015 06:05:40 +0000 (15:05 +0900)
committerJung Ick Guack <jiguack@gmail.com>
Thu, 24 Sep 2015 06:05:40 +0000 (15:05 +0900)
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 <jiguack@gmail.com>
provider/browser-provider-shm.c
provider/include/browser-provider-shm.h

index 5cef2a3346bf19258a55768b4cc467dd97b70240..5919b14f075093f16700f5390b0ff9ffa108603d 100644 (file)
@@ -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;
 }
index cd264e4dd7613e119a5c0ee83f5d8ad1e1b82212..207fc262e28303a3847cb47c59dcc831ea35de79 100755 (executable)
@@ -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;