From nobody Wed Feb 11 18:03:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F4F5C77B75 for ; Fri, 5 May 2023 18:44:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233281AbjEESoR (ORCPT ); Fri, 5 May 2023 14:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233272AbjEESoP (ORCPT ); Fri, 5 May 2023 14:44:15 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0023259D4 for ; Fri, 5 May 2023 11:44:13 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f1950f5676so21622385e9.3 for ; Fri, 05 May 2023 11:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683312252; x=1685904252; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cOft8V3poWwKGQYv2fbFWbi4vvY+surZitO1qc1yIVw=; b=t8d/519efYOhOnacRAzOYC0VPKglKsmmZePchT3MPLdLzv6N2FOEFziG842IIpSB9X eWBBkoTm7RqACfDWu9JEyVebdogXKMufa6pU/+jM5m/qO4dQruwr1o+UZTeS5m8TRhMt PUM7gKhQqH4pkxGISuW3mu38qIdU31NVO860yTjvJTWkFZfgpIfs19X2t8d8Mmgh56Nk i7zqDzgiGE7M4vudf9j5jOMgF8ABprrUjP1D7mFxsZo/TXoQwWozW8urUBEq73zPyuTx Gj9DQjuVSEJAFC2Ra5UFkueQ+AexnQSqybTNiC0uCmXCxuwkcKM25PCneBBcTjizzbw3 PrxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683312252; x=1685904252; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cOft8V3poWwKGQYv2fbFWbi4vvY+surZitO1qc1yIVw=; b=krQwSxnA/0RyQLmnuHGe/OV7AobRtbAcqkUtWnSN9BvtG6Y62GqnY+S3c+iUr6ng1i kXlicX1AmMFKktD09kaqhNik6q4xNS8W/ruoaH3BY3psSDdKCi+XKio1cVbz8GuasSn2 Ua5mBWeqsL7HvKOesas4emqeeQ0g3ZgJxof/bCcuTuABxnUfb8qq0dJ0k5LjYuj29eBx 6XMB2/seWILjK6aQBlRvaIiMLIPZjQtCMoWY44efh/7wAH+VenEdlZRtqwOEsGG5bgEy q1bb94Y0zQTxVEQvbO06iBG52VQv+CmFaa56KceEVFJqBgZbYRZ9CLktbjyacGc8r2OV EhXA== X-Gm-Message-State: AC+VfDyZdoXrwHiR9hWEFFMiclqzW2jcnySVeYfsMX5R24wFFWRafqGt 3r0ixD8dywg2yg4YCSH89d8P6x36G0vV2+6sEWs= X-Google-Smtp-Source: ACHHUZ7GcTP+k/N8hq5FhBGVRp44QZn75YCloLg6L6SGE7jjV0GbozUmEtaRHRxSHBjQtbgjWyLu6A== X-Received: by 2002:a1c:4b06:0:b0:3f1:69cc:475b with SMTP id y6-20020a1c4b06000000b003f169cc475bmr1852971wma.36.1683312252124; Fri, 05 May 2023 11:44:12 -0700 (PDT) Received: from lmecxl1178.lme.st.com (lfbn-nan-1-1169-52.w86-212.abo.wanadoo.fr. [86.212.112.52]) by smtp.gmail.com with ESMTPSA id u20-20020a05600c211400b003f183127434sm8686370wml.30.2023.05.05.11.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 11:44:11 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Cc: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , linux-integrity@vger.kernel.org, Etienne Carriere Subject: [PATCH] char: tpm: ftpm_tee: use kernel login identifier Date: Fri, 5 May 2023 20:43:18 +0200 Message-Id: <20230505184318.1355446-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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_te= e.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 =3D TEE_IOCTL_LOGIN_PUBLIC; + sess_arg.clnt_login =3D TEE_IOCTL_LOGIN_REE_KERNEL; sess_arg.num_params =3D 0; =20 rc =3D tee_client_open_session(pvt_data->ctx, &sess_arg, NULL); --=20 2.25.1