mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
tee: client UUID: Skip REE kernel login method as well
Since the addition of session's client UUID generation via commit [1],
login via REE kernel method was disallowed. So fix that via passing
nill UUID in case of TEE_IOCTL_LOGIN_REE_KERNEL method as well.
Fixes: e33bcbab16
("tee: add support for session's client UUID generation") [1]
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This commit is contained in:
parent
9123e3a74e
commit
722939528a
1 changed files with 2 additions and 1 deletions
|
@ -200,7 +200,8 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
|
|||
int name_len;
|
||||
int rc;
|
||||
|
||||
if (connection_method == TEE_IOCTL_LOGIN_PUBLIC) {
|
||||
if (connection_method == TEE_IOCTL_LOGIN_PUBLIC ||
|
||||
connection_method == TEE_IOCTL_LOGIN_REE_KERNEL) {
|
||||
/* Nil UUID to be passed to TEE environment */
|
||||
uuid_copy(uuid, &uuid_null);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue