diff options
author | Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> | 2020-04-30 15:37:10 +0300 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2020-05-11 14:11:33 +0200 |
commit | c5b4312bea5d5e5e3d4f0af640e2ef8a1c1bb167 (patch) | |
tree | cb30aca19cd68170531b6bebf5bc9823017f36fe /drivers/tee/optee | |
parent | e33bcbab16d1c0dd85d72bec275308369ad901f5 (diff) | |
download | linux-stable-c5b4312bea5d5e5e3d4f0af640e2ef8a1c1bb167.tar.gz linux-stable-c5b4312bea5d5e5e3d4f0af640e2ef8a1c1bb167.tar.bz2 linux-stable-c5b4312bea5d5e5e3d4f0af640e2ef8a1c1bb167.zip |
tee: optee: Add support for session login client UUID generation
Adds support for client UUID generation for OP-TEE. For group based session
logins membership is verified.
Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee')
-rw-r--r-- | drivers/tee/optee/call.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/tee/optee/call.c b/drivers/tee/optee/call.c index cf2367ba08d6..dbed3f480dc0 100644 --- a/drivers/tee/optee/call.c +++ b/drivers/tee/optee/call.c @@ -233,9 +233,13 @@ int optee_open_session(struct tee_context *ctx, msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | OPTEE_MSG_ATTR_META; memcpy(&msg_arg->params[0].u.value, arg->uuid, sizeof(arg->uuid)); - memcpy(&msg_arg->params[1].u.value, arg->uuid, sizeof(arg->clnt_uuid)); msg_arg->params[1].u.value.c = arg->clnt_login; + rc = tee_session_calc_client_uuid((uuid_t *)&msg_arg->params[1].u.value, + arg->clnt_login, arg->clnt_uuid); + if (rc) + goto out; + rc = optee_to_msg_param(msg_arg->params + 2, arg->num_params, param); if (rc) goto out; |