From mboxrd@z Thu Jan 1 00:00:00 1970 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 955E3C77B78 for ; Sun, 23 Apr 2023 05:38:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbjDWFig (ORCPT ); Sun, 23 Apr 2023 01:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjDWFif (ORCPT ); Sun, 23 Apr 2023 01:38:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42DF1987; Sat, 22 Apr 2023 22:38:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 825E060B56; Sun, 23 Apr 2023 05:38:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFF6EC433D2; Sun, 23 Apr 2023 05:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682228313; bh=jKBT3M4WsVf8+YXtMpgMXF2xTajOHL++vIkdz8yvVtE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=GXRrVZsPPDG8abTVwl8Q68XjpR+pSgIH5/5WrScI2sQC36jDB8AgQPBgbSSXUs+Vb 3ZJoQdwcjbikXeHuOmecOOyeD0wTAxKfHrjE7xtYphTXWyueUZPv3YXbjk/qb+hijn gHhF03H5qACCYdrqaTP3TzRNUvWuyC6gEjZ1p98SdmMTbOjIiizsHnLyZLIAtyv4Rn Ipz6hfYC26F+a7wGVJGX3jAYxn3O4yO3J82YXcgv26dVeCC0u4skqsD1ULN/mUg2Fv rXirZRfpkqGRNryZIpv0mO78LTAymvjlUzUfAOkFQqtgbxvHDgQtHy8zYGkN+OhciT CTbwbz/M+kduw== Message-ID: Subject: Re: [PATCH v4 12/13] tpm: add the null key name as a sysfs export From: Jarkko Sakkinen To: James Bottomley , linux-integrity@vger.kernel.org Cc: keyrings@vger.kernel.org, Ard Biesheuvel Date: Sun, 23 Apr 2023 08:38:30 +0300 In-Reply-To: <20230403214003.32093-13-James.Bottomley@HansenPartnership.com> References: <20230403214003.32093-1-James.Bottomley@HansenPartnership.com> <20230403214003.32093-13-James.Bottomley@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.0-1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Mon, 2023-04-03 at 17:40 -0400, James Bottomley wrote: > This is the last component of encrypted tpm2 session handling that > allows us to verify from userspace that the key derived from the NULL > seed genuinely belongs to the TPM and has not been spoofed. How would you do this in practice with the help of this file? The current description does not make a case to have this file, unless it is supported by an usage example to do what you claim above. BR, Jarkko