Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b76794ae authored by Jeya R's avatar Jeya R
Browse files

msm: ADSPRPC: Add extra checks for Unsigned request



Added extra checks to reject session request
when third party applications spawn signed PD.

Change-Id: I9d975cc29113ff651b543fbe765feea3b11fbe94
Acked-by: default avatarKrishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent 8ecfbf83
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2509,7 +2509,9 @@ static int fastrpc_init_process(struct fastrpc_file *fl,
	struct fastrpc_buf *imem = NULL;
	unsigned long imem_dma_attr = 0;
	char *proc_name = NULL;
	int unsigned_request = (uproc->attrs & FASTRPC_MODE_UNSIGNED_MODULE);
	bool init_flags = init->flags == FASTRPC_INIT_CREATE ? true : false;
	int proc_attrs = uproc->attrs & FASTRPC_MODE_UNSIGNED_MODULE;
	int unsigned_request = proc_attrs && init_flags;
	int cid = fl->cid;
	struct fastrpc_channel_ctx *chan = &me->channel[cid];