Skip to content

Commit a1f8ac0

Browse files
b49020jforissier
authored andcommitted
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: e33bcba ("tee: add support for session's client UUID generation") [1] Signed-off-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent d297719 commit a1f8ac0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/tee/tee_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
200200
int name_len;
201201
int rc;
202202

203-
if (connection_method == TEE_IOCTL_LOGIN_PUBLIC) {
203+
if (connection_method == TEE_IOCTL_LOGIN_PUBLIC ||
204+
connection_method == TEE_IOCTL_LOGIN_REE_KERNEL) {
204205
/* Nil UUID to be passed to TEE environment */
205206
uuid_copy(uuid, &uuid_null);
206207
return 0;

0 commit comments

Comments
 (0)