Resolve socket fd leak and add privilege 44/82744/10 accepted/tizen/common/20160818.144341 accepted/tizen/ivi/20160818.231819 accepted/tizen/mobile/20160818.231641 accepted/tizen/tv/20160818.231750 accepted/tizen/wearable/20160818.231719 submit/tizen/20160818.052348
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 5 Aug 2016 11:52:18 +0000 (20:52 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 11 Aug 2016 23:45:31 +0000 (08:45 +0900)
Change-Id: I421f4d5e95fdcbe15594ef62598c45feeeaba905

packaging/muse-server.service
packaging/mused.spec
src/muse_core_ipc.c

index 6b7fa62..db9b7fb 100644 (file)
@@ -13,7 +13,7 @@ Restart=always
 MemoryLimit=300M
 EnvironmentFile=/run/tizen-system-env
 EnvironmentFile=/run/xdg-root-env
-SupplementaryGroups=priv_mediastorage
+SupplementaryGroups=priv_mediastorage priv_camera
 
 [Install]
 WantedBy=multi-user.target
index f6ce9be..7699eb8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A Multimedia Daemon in Tizen Native API
-Version:    0.1.3
+Version:    0.1.4
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index 76bfb3a..b3a9579 100644 (file)
@@ -199,6 +199,7 @@ static gpointer _muse_core_ipc_data_worker(gpointer data)
                } else {
                        if (module) {
                                muse_recv_data_t *qData;
+                               module->ch[MUSE_CHANNEL_DATA].fd = fd;
                                while ((qData = _muse_core_ipc_new_qdata(&recvBuff, currLen, &allocSize)) != NULL) {
                                        int qDataSize = qData->header.size + sizeof(muse_recv_data_head_t);
                                        if (currLen > qDataSize) {
@@ -227,6 +228,7 @@ static gpointer _muse_core_ipc_data_worker(gpointer data)
                                        if (module) {
                                                module->ch[MUSE_CHANNEL_DATA].p_gthread = g_thread_self();
                                                g_return_val_if_fail(module->ch[MUSE_CHANNEL_DATA].p_gthread != NULL, NULL);
+                                               module->ch[MUSE_CHANNEL_DATA].fd = fd;
                                        }
                                }
                                MUSE_FREE(recvBuff);