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
devs/captainigloo/eglfs_rpi
Mike Blumenkrantz 7 years ago
parent fd8cbcd9f0
commit dc33712069
  1. 42
      src/bin/e_ipc.c
  2. 3
      src/bin/e_ipc.h

@ -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:

@ -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,

Loading…
Cancel
Save