projects
/
platform
/
core
/
multimedia
/
media-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a8bae
)
Remove credential check of connected client
11/147811/1
author
Minje Ahn
<minje.ahn@samsung.com>
Wed, 6 Sep 2017 00:44:34 +0000
(09:44 +0900)
committer
Minje Ahn
<minje.ahn@samsung.com>
Wed, 6 Sep 2017 00:44:34 +0000
(09:44 +0900)
Change-Id: I82696d191c903b89692f1883e19169b41bd7c0c9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/server/media-server-dcm.c
patch
|
blob
|
history
diff --git
a/src/server/media-server-dcm.c
b/src/server/media-server-dcm.c
index
05c0507
..
46da2f3
100755
(executable)
--- a/
src/server/media-server-dcm.c
+++ b/
src/server/media-server-dcm.c
@@
-520,9
+520,6
@@
gboolean _ms_dcm_agent_read_socket(GIOChannel *src, GIOCondition condition, gpoi
int sock = -1;
int client_sock = -1;
- struct ucred cr;
- int cl = sizeof(struct ucred);
-
sock = g_io_channel_unix_get_fd(src);
if (sock < 0) {
MS_DBG_ERR("sock fd is invalid!");
@@
-552,13
+549,6
@@
gboolean _ms_dcm_agent_read_socket(GIOChannel *src, GIOCondition condition, gpoi
return TRUE;
}
- if (getsockopt(client_sock, SOL_SOCKET, SO_PEERCRED, &cr, (socklen_t *) &cl) < 0) {
- MS_DBG_ERR("credential information error");
- }
-
- if (getuid() != cr.uid)
- recv_msg->uid = cr.uid;
-
dcmRequest *dcm_req = NULL;
MS_MALLOC(dcm_req, sizeof(dcmRequest));