Fix UID/GID 56/68356/1 accepted/tizen/common/20160504.130731 accepted/tizen/ivi/20160504.115131 accepted/tizen/mobile/20160504.114710 accepted/tizen/tv/20160504.114554 accepted/tizen/wearable/20160504.114916 submit/tizen/20160504.042345
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 3 May 2016 23:51:46 +0000 (08:51 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 3 May 2016 23:51:46 +0000 (08:51 +0900)
Change-Id: If65c08fce91a1752621cdc2abe8f3393272b14f7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/libmedia-thumbnail.spec
server/thumb-server-internal.c
src/ipc/media-thumb-ipc.c

index e535413..589f368 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmedia-thumbnail
 Summary:    Media thumbnail service library for multimedia applications
-Version: 0.1.94
+Version: 0.1.95
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0 and public domain
index 270c496..cf14b97 100755 (executable)
@@ -41,8 +41,8 @@
 #define THUMB_DEFAULT_WIDTH 320
 #define THUMB_DEFAULT_HEIGHT 240
 #define THUMB_BLOCK_SIZE 512
-#define THUMB_ROOT_UID "0"
-#define THUMB_COMM_SOCK_PATH tzplatform_mkpath(TZ_SYS_RUN, "media-server/media_ipc_thumbcomm.socket")
+#define THUMB_ROOT_UID "451"
+#define THUMB_COMM_SOCK_PATH "/tmp/media-server/media_ipc_thumbcomm.socket"
 #define THUMB_EMPTY_STR ""
 
 static __thread char **arr_path;
@@ -370,7 +370,7 @@ gboolean _thumb_server_read_socket(GIOChannel *src,
        }
 
        if (recv_msg.msg_type == THUMB_REQUEST_KILL_SERVER && strncmp(credentials.uid, THUMB_ROOT_UID, strlen(THUMB_ROOT_UID)) != 0) {
-               thumb_err("Only root can send THUMB_REQUEST_KILL_SERVER request");
+               thumb_err("Only media-server can send THUMB_REQUEST_KILL_SERVER request");
                _thumb_server_send_deny_message(client_sock);
                close(client_sock);
                return TRUE;
index 29ce6b1..fe89c59 100755 (executable)
@@ -32,7 +32,7 @@
 #include <pwd.h>
 
 #define THUMB_SOCK_BLOCK_SIZE 512
-#define THUMB_IPC_PATH tzplatform_mkpath(TZ_SYS_RUN, "media-server/media_ipc_thumbcreator.socket")
+#define THUMB_IPC_PATH "/tmp/media-server/media_ipc_thumbcreator.socket"
 
 static GQueue *g_request_queue = NULL;
 static GQueue *g_manage_queue = NULL;