Linux Integrity Measurement development
 help / color / mirror / Atom feed
From: "Jarkko Sakkinen" <jarkko@kernel.org>
To: "Etienne Carriere" <etienne.carriere@linaro.org>,
	<linux-kernel@vger.kernel.org>
Cc: "Peter Huewe" <peterhuewe@gmx.de>,
	"Jason Gunthorpe" <jgg@ziepe.ca>,
	<linux-integrity@vger.kernel.org>
Subject: Re: [PATCH] char: tpm: ftpm_tee: use kernel login identifier
Date: Thu, 11 May 2023 01:12:41 +0300	[thread overview]
Message-ID: <CSIXYHYSW45R.O3II0HIIHZV4@suppilovahvero> (raw)
In-Reply-To: <20230505184318.1355446-1-etienne.carriere@linaro.org>

On Fri May 5, 2023 at 9:43 PM EEST, Etienne Carriere wrote:
> 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>


Can you bring up a little context here?

What is REE login?
Does it break backwards compatibility to switch?
What kind of scenario we are talking about? What does it mean in plain
English when fTPM service is denied.
What is fTPM service?

> ---
>  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

BR, Jarkko

  parent reply	other threads:[~2023-05-10 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CSIXYHYSW45R.O3II0HIIHZV4@suppilovahvero \
    --to=jarkko@kernel.org \
    --cc=etienne.carriere@linaro.org \
    --cc=jgg@ziepe.ca \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterhuewe@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox