grant media storeage group 51/76251/1 accepted/tizen/common/20160627.191556 accepted/tizen/ivi/20160624.063927 accepted/tizen/mobile/20160624.063509 accepted/tizen/tv/20160624.063548 accepted/tizen/wearable/20160624.063816 submit/tizen/20160623.103205
authorjongmyeongko <jongmyeong.ko@samsung.com>
Thu, 23 Jun 2016 07:57:46 +0000 (16:57 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Thu, 23 Jun 2016 07:57:46 +0000 (16:57 +0900)
Change-Id: I8f021a7babf1bb4b0a1e5781b1a044bd8d505a55
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkgmgr-server.c

index 29aa55b..7742879 100644 (file)
@@ -56,6 +56,7 @@
 
 #define EXT_STORAGE_GROUP 10001
 #define EXT_STORAGE_APPDATA_GROUP 10002
+#define MEDIA_STORAGE_GROUP 10502
 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
 
 typedef struct  {
@@ -561,7 +562,9 @@ int set_environement(user_ctx *ctx)
        int i = 0;
        int res = 0;
        char **env = NULL;
-       gid_t groups[] = {EXT_STORAGE_GROUP, EXT_STORAGE_APPDATA_GROUP};
+       gid_t groups[] = {EXT_STORAGE_GROUP,
+               EXT_STORAGE_APPDATA_GROUP,
+               MEDIA_STORAGE_GROUP};
 
        if (!ctx)
                return -1;;