securemsm-kernel: Add IClientEnv_registerWithCredentials

Use new ClientEnv register method for kernel clients

Change-Id: I3ce32788c5c7658dcaf808c00d52c32df226fec6
此提交包含在:
Nicholas Pelham
2022-07-14 11:36:30 -07:00
提交者 Gerrit - the friendly Code Review server
父節點 795df801dd
當前提交 a4a925db92
共有 3 個檔案被更改,包括 39 行新增14 行删除

查看文件

@@ -33,6 +33,7 @@
#include "misc/qseecom_kernel.h"
#include "smcinvoke.h"
#include "smcinvoke_object.h"
#include "IClientEnv.h"
#define CREATE_TRACE_POINTS
#include "trace_smcinvoke.h"
@@ -2256,6 +2257,14 @@ static long process_invoke_req(struct file *filp, unsigned int cmd,
return -EINVAL;
}
if (context_type == SMCINVOKE_OBJ_TYPE_TZ_OBJ &&
tzobj->tzhandle == SMCINVOKE_TZ_ROOT_OBJ &&
(req.op == IClientEnv_OP_notifyDomainChange ||
req.op == IClientEnv_OP_registerWithCredentials)) {
pr_err("invalid rootenv op\n");
return -EINVAL;
}
nr_args = OBJECT_COUNTS_NUM_buffers(req.counts) +
OBJECT_COUNTS_NUM_objects(req.counts);