summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-08-18 01:03:18 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2016-08-18 01:03:18 (GMT)
commit8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596 (patch)
tree5efa34a917728f7b3ea9c6c94ed34398661a200b
parent34caef03fc93a311f38270f259e716cc60efd7d9 (diff)
downloadlibmedia-thumbnail-8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596.zip
libmedia-thumbnail-8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596.tar.gz
libmedia-thumbnail-8bc13ad16fd8a63e9d460c633bfb3f2ef33a7596.tar.bz2
Change-Id: I0f2fff0b0f11af490751c8005dc880d3ee1bc536 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xserver/thumb-server-internal.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/server/thumb-server-internal.c b/server/thumb-server-internal.c
index 3d964de..f42d1d8 100755
--- a/server/thumb-server-internal.c
+++ b/server/thumb-server-internal.c
@@ -41,7 +41,6 @@
#define THUMB_DEFAULT_WIDTH 320
#define THUMB_DEFAULT_HEIGHT 240
#define THUMB_BLOCK_SIZE 512
-#define THUMB_ROOT_UID "451"
#define THUMB_COMM_SOCK_PATH tzplatform_mkpath(TZ_SYS_RUN, "media-server/media_ipc_thumbcomm.socket")
#define THUMB_EMPTY_STR ""
@@ -369,13 +368,6 @@ gboolean _thumb_server_read_socket(GIOChannel *src,
return FALSE;
}
- 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_server_send_deny_message(client_sock);
- close(client_sock);
- return TRUE;
- }
-
if (recv_msg.msg_type != THUMB_REQUEST_KILL_SERVER) {
if (ms_cynara_check(&credentials, MEDIA_STORAGE_PRIVILEGE) != MS_MEDIA_ERR_NONE) {
thumb_err("Cynara denied access to process request");