discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4619114ea77e32282389d5d635455c4656c20cc5

commit 4619114ea77e32282389d5d635455c4656c20cc5
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 29 10:32:12 2016 -0500

    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
---
 src/bin/e_ipc.c | 42 ------------------------------------------
 src/bin/e_ipc.h |  3 ---
 2 files changed, 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)
       case E_IPC_DOMAIN_REQUEST:
       case E_IPC_DOMAIN_REPLY:
       case E_IPC_DOMAIN_EVENT:
-        switch (e->minor)
-          {
-           case E_IPC_OP_EXEC_ACTION:
-           {
-              E_Ipc_2Str *req = NULL;
-
-              if (e_ipc_codec_2str_dec(e->data, e->size, &req))
-                {
-                   int len, ok = 0;
-                   void *d;
-
-                   E_Action *act = e_action_find(req->str1);
-
-                   if ((act) && (act->func.go))
-                     {
-                        act->func.go(E_OBJECT(e_comp), req->str2);
-                        ok = 1;
-                     }
-
-                   d = e_ipc_codec_int_enc(ok, &len);
-                   if (d)
-                     {
-                        ecore_ipc_client_send(e->client,
-                                              E_IPC_DOMAIN_REPLY,
-                                              E_IPC_OP_EXEC_ACTION_REPLY,
-                                              0, 0, 0, d, len);
-                        free(d);
-                     }
-
-                   if (req)
-                     {
-                        E_FREE(req->str1);
-                        E_FREE(req->str2);
-                        E_FREE(req);
-                     }
-                }
-           }
-           break;
-
-           default:
-             break;
-          }
         break;
 
       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;
 
 #ifdef USE_IPC
 
-#define E_IPC_OP_EXEC_ACTION 386
-#define E_IPC_OP_EXEC_ACTION_REPLY 387
-
 typedef enum _E_Ipc_Domain
 {
    E_IPC_DOMAIN_NONE,

-- 


Reply via email to