Linux Integrity Measurement development
 help / color / mirror / Atom feed
* [PATCH] char: tpm: ftpm_tee: use kernel login identifier
@ 2023-05-05 18:43 Etienne Carriere
  2023-05-10 10:24 ` Sumit Garg
  2023-05-10 22:12 ` Jarkko Sakkinen
  0 siblings, 2 replies; 9+ messages in thread
From: Etienne Carriere @ 2023-05-05 18:43 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Huewe, Jarkko Sakkinen, Jason Gunthorpe, linux-integrity,
	Etienne Carriere

Changes fTPM TEE driver to open the TEE session with REE kernel login
identifier rather than public login. This is needed in case fTPM service
it denied to user land application and restricted to kernel operating
system services only.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 drivers/char/tpm/tpm_ftpm_tee.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
index 528f35b14fb6..6d32e260af43 100644
--- a/drivers/char/tpm/tpm_ftpm_tee.c
+++ b/drivers/char/tpm/tpm_ftpm_tee.c
@@ -241,7 +241,7 @@ static int ftpm_tee_probe(struct device *dev)
 	/* Open a session with fTPM TA */
 	memset(&sess_arg, 0, sizeof(sess_arg));
 	export_uuid(sess_arg.uuid, &ftpm_ta_uuid);
-	sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC;
+	sess_arg.clnt_login = TEE_IOCTL_LOGIN_REE_KERNEL;
 	sess_arg.num_params = 0;
 
 	rc = tee_client_open_session(pvt_data->ctx, &sess_arg, NULL);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-11  8:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 18:43 [PATCH] char: tpm: ftpm_tee: use kernel login identifier Etienne Carriere
2023-05-10 10:24 ` Sumit Garg
2023-05-10 14:58   ` Etienne Carriere
2023-05-11  8:05     ` Sumit Garg
2023-05-10 22:12 ` Jarkko Sakkinen
2023-05-11  4:47   ` Etienne Carriere
2023-05-11  5:06     ` Etienne Carriere
2023-05-11  8:14       ` Sumit Garg
2023-05-11  8:25         ` Etienne Carriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox