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
This commit is contained in:
Mike Blumenkrantz 2016-02-29 10:32:12 -05:00
parent fd8cbcd9f0
commit dc33712069
2 changed files with 0 additions and 45 deletions

View File

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

View File

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