diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2022-12-07 16:25:33 +0100 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2022-12-20 09:37:36 +0200 |
commit | 33ba80303e93869c439828dd289fb8ef64ed3bfc (patch) | |
tree | 270b51005c8910ea67186e34f97bbe3d004de0dc /drivers/tpm | |
parent | 2243922edca9f56a9d5519b9d6e36f5d7a18434d (diff) | |
download | u-boot-33ba80303e93869c439828dd289fb8ef64ed3bfc.zip u-boot-33ba80303e93869c439828dd289fb8ef64ed3bfc.tar.gz u-boot-33ba80303e93869c439828dd289fb8ef64ed3bfc.tar.bz2 |
tpm2: ftpm: open session with privileged ree login
Opens the fTPM session with TEE_LOGIN_REE_KERNEL as fTPM may restrict
access to that login when Linux based OS is running as applications are
expected to got through the Linux TPMv2 driver.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'drivers/tpm')
-rw-r--r-- | drivers/tpm/tpm2_ftpm_tee.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c index 53e59f4..3c4c129 100644 --- a/drivers/tpm/tpm2_ftpm_tee.c +++ b/drivers/tpm/tpm2_ftpm_tee.c @@ -186,6 +186,7 @@ static int ftpm_tee_probe(struct udevice *dev) /* Open a session with the fTPM TA */ memset(&sess_arg, 0, sizeof(sess_arg)); + sess_arg.clnt_login = TEE_LOGIN_REE_KERNEL; tee_optee_ta_uuid_to_octets(sess_arg.uuid, &uuid); rc = tee_open_session(context->tee_dev, &sess_arg, 0, NULL); |