summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-29 10:32:12 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-29 10:43:02 -0500
commitdc337120694b12cc39b2d3fc6dc53968b2ec7ef0 (patch)
treeb94813881c916dcc62579e8911d1f077088bcc6c /src
parentfd8cbcd9f0928e79e0a73a05d83413dd325dc70f (diff)
remove ipc command allowing arbitrary command execution by the compositor
http://i2.kym-cdn.com/photos/images/facebook/000/565/399/9c0.jpg CID 1291836
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_ipc.c42
-rw-r--r--src/bin/e_ipc.h3
2 files changed, 0 insertions, 45 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index 744b971..1ffb336 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -165,48 +165,6 @@ _e_ipc_cb_client_data(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
165 case E_IPC_DOMAIN_REQUEST: 165 case E_IPC_DOMAIN_REQUEST:
166 case E_IPC_DOMAIN_REPLY: 166 case E_IPC_DOMAIN_REPLY:
167 case E_IPC_DOMAIN_EVENT: 167 case E_IPC_DOMAIN_EVENT:
168 switch (e->minor)
169 {
170 case E_IPC_OP_EXEC_ACTION:
171 {
172 E_Ipc_2Str *req = NULL;
173
174 if (e_ipc_codec_2str_dec(e->data, e->size, &req))
175 {
176 int len, ok = 0;
177 void *d;
178
179 E_Action *act = e_action_find(req->str1);
180
181 if ((act) && (act->func.go))
182 {
183 act->func.go(E_OBJECT(e_comp), req->str2);
184 ok = 1;
185 }
186
187 d = e_ipc_codec_int_enc(ok, &len);
188 if (d)
189 {
190 ecore_ipc_client_send(e->client,
191 E_IPC_DOMAIN_REPLY,
192 E_IPC_OP_EXEC_ACTION_REPLY,
193 0, 0, 0, d, len);
194 free(d);
195 }
196
197 if (req)
198 {
199 E_FREE(req->str1);
200 E_FREE(req->str2);
201 E_FREE(req);
202 }
203 }
204 }
205 break;
206
207 default:
208 break;
209 }
210 break; 168 break;
211 169
212 case E_IPC_DOMAIN_THUMB: 170 case E_IPC_DOMAIN_THUMB:
diff --git a/src/bin/e_ipc.h b/src/bin/e_ipc.h
index e007f8d..19b9602 100644
--- a/src/bin/e_ipc.h
+++ b/src/bin/e_ipc.h
@@ -4,9 +4,6 @@ EINTERN extern char *e_ipc_socket;
4 4
5#ifdef USE_IPC 5#ifdef USE_IPC
6 6
7#define E_IPC_OP_EXEC_ACTION 386
8#define E_IPC_OP_EXEC_ACTION_REPLY 387
9
10typedef enum _E_Ipc_Domain 7typedef enum _E_Ipc_Domain
11{ 8{
12 E_IPC_DOMAIN_NONE, 9 E_IPC_DOMAIN_NONE,