From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 27 Nov 2025 12:06:14 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOZpG-005PDg-33 for lore@lore.pengutronix.de; Thu, 27 Nov 2025 12:06:14 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vOZpG-0007YW-Pk; Thu, 27 Nov 2025 12:06:14 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vOZp9-0007YC-G8; Thu, 27 Nov 2025 12:06:07 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOZp9-002mAW-10; Thu, 27 Nov 2025 12:06:07 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vOZp9-00000000lwN-160o; Thu, 27 Nov 2025 12:06:07 +0100 Date: Thu, 27 Nov 2025 12:06:07 +0100 From: Michael Olbrich To: Sven =?utf-8?Q?P=C3=BCschel?= Message-ID: References: <20251119105801.208295-1-s.pueschel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20251119105801.208295-1-s.pueschel@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH] optee-client: add config option for RPMB emulation X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de, Michael Tretter Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Wed, Nov 19, 2025 at 11:57:57AM +0100, Sven Püschel wrote: > From: Michael Tretter > > RPMB emulation is enabled by default in the tee-supplicant. In a > production system, the RPMB shall be backed by the eMMC. > > Add an option to disable RPMB emulation. > > Signed-off-by: Michael Tretter > Signed-off-by: Sven Püschel > --- > rules/optee-client.in | 7 +++++++ > rules/optee-client.make | 2 +- > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/rules/optee-client.in b/rules/optee-client.in > index cb1033cb0..b68e068d9 100644 > --- a/rules/optee-client.in > +++ b/rules/optee-client.in > @@ -26,4 +26,11 @@ config OPTEE_CLIENT_SUPPLICANT_PLUGINS > bool > prompt "enable TEE supplicant plugins" > > +config OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION > + bool > + default y The default should be 'no'. I'll change that while applying this. This changes things during update, but it should not have been enabled before anyways. Michael > + prompt "enable TEE supplicant RPMB emulation" > + help > + Emulate the RPMB in the TEE supplicant instead of using the eMMC. > + > endif > diff --git a/rules/optee-client.make b/rules/optee-client.make > index c884000d6..1bbd1ce63 100644 > --- a/rules/optee-client.make > +++ b/rules/optee-client.make > @@ -48,7 +48,7 @@ OPTEE_CLIENT_CONF_OPT := \ > -DCFG_TEE_SUPP_LOG_LEVEL=1 \ > -DCFG_TEE_SUPP_PLUGINS=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_PLUGINS) \ > -DCFG_WERROR=ON \ > - -DRPMB_EMU=ON \ > + -DRPMB_EMU=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION) \ > -DWITH_TEEACL=ON > > # ---------------------------------------------------------------------------- > -- > 2.47.3 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |