]> Git Repo - linux.git/commitdiff
tee: client UUID: Skip REE kernel login method as well
authorSumit Garg <[email protected]>
Thu, 17 Sep 2020 13:40:22 +0000 (19:10 +0530)
committerJens Wiklander <[email protected]>
Tue, 13 Oct 2020 06:42:11 +0000 (08:42 +0200)
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: e33bcbab16d1 ("tee: add support for session's client UUID generation") [1]
Signed-off-by: Sumit Garg <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
drivers/tee/tee_core.c

index 64637e09a09536a4659c43f4b2aef8c783c81d1c..2f6199ebf769821817cddd2df4f99a728c3c8eb7 100644 (file)
@@ -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;
This page took 0.055322 seconds and 4 git commands to generate.