Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1224860pxb; Sun, 21 Feb 2021 17:00:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdtgG+Bqc9NbeDp4reFAIUPUa+8uPWgiLHk7rgb/QsRYMvMWE7jPvOQopcfqRxly0PE0hS X-Received: by 2002:a17:907:207c:: with SMTP id qp28mr2301208ejb.273.1613955629598; Sun, 21 Feb 2021 17:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613955629; cv=none; d=google.com; s=arc-20160816; b=I20X1zGeoztTGaO7nV93FYuHE+rYmWlav5NKKL54VyajYtXnLfv170C34HnrwovbKI qaVDevCY/L6mia889KZRXdJL4RYgdmSlrI3FxEl9gr4na/HE/V+IFG7dfPhseyxmu3bl rm5QJh+fhsyWNeePrYPw7Dgm1UoQIk9pcE2pMnhThX5WYUqfY9ep4Q8AtgH1j24mS6wW +uclcUVry4oQeiCWJKTet7gPK5HbFjfWbDfYTu4dpUcd07r9794jvLWRzdV5n21dDV8I 25Timtn6J3euCrl3Bv6Ficd2UC117SV98/JnlpqT5Z3/qbQGa6eLcrJef0RHISim/xWX 9EVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KldllQqhDQL9+GWSK9i/UXP1sLnnx5QAIr+tuAEKPEQ=; b=VyUZFOkZMkiKVcpBJH4o812OTp3TMy25YGVEGQQXlX0BXxqknTUMEwOvjw3CaD62TL dpBz/+Eo4TKbmBAy1ly55mPDgxQjMW7JHMb6x4XcBIF+7TxRAsvMk6a0yzpwqbH7QRCa SqNIE1h72hz+usTcMlQhqN60GlHwB1HRRugDWXMkpW54I8hfpp9ZgVFuBVrcYDe2Loa4 rFS9VFIhne3QGz7oRbDdCx47G5whezayDkvbqrbJTdra9khkjyx1/DTD24HKCZlDGMHl dnG7Nb9uyXO6OAJPpZMt3jV/hqbKd0FxFxF3ox3TCsTz/oh3Y7LHLYX4DJbEF4o0QeQ7 ESpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IISjMkSZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si10829453edk.143.2021.02.21.17.00.06; Sun, 21 Feb 2021 17:00:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IISjMkSZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbhBVA6w (ORCPT + 99 others); Sun, 21 Feb 2021 19:58:52 -0500 Received: from mout.gmx.net ([212.227.17.20]:35431 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbhBVA6q (ORCPT ); Sun, 21 Feb 2021 19:58:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613955422; bh=KldllQqhDQL9+GWSK9i/UXP1sLnnx5QAIr+tuAEKPEQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IISjMkSZYJ/BQd0Z7oM56Tqmao8uZg6BNcJdoMBusoWELtKnfsT9waooXWvgPnx7o sMAytXoVMeW0SxtvKQE1gw65bzDjZtvHrRom1ImVNtfZin7myGmyqq1PtNsoGfaWEW ncBOjSRaIly1XhWlbfrPWhlHYipfIlHHSRXzFBQc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([78.42.220.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNbox-1lSf1q3mNX-00P5er; Mon, 22 Feb 2021 01:57:01 +0100 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.ibm.com, James.Bottomley@hansenpartnership.com, jsnitsel@redhat.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, LinoSanfilippo@gmx.de Subject: [PATCH 2/4] tpm: get locality before writing to TPM chip Date: Mon, 22 Feb 2021 01:56:32 +0100 Message-Id: <1613955394-13152-3-git-send-email-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613955394-13152-1-git-send-email-LinoSanfilippo@gmx.de> References: <1613955394-13152-1-git-send-email-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:qhd9aPZ4LJcyp5V8EhU0ldbf11gT8fnTKkM/Vdq24uW5oDFQ3II Cjns7qqqV/hk4wg9xlPg5+inKALszOvSh17e6U3qnsxj3hY1zMNvmGMFlz34+R7a1UlKGEN pIfKno1oSZ0Zy5ZSy4aAmtp3GfS0V4Gq7sdpp1bjhvsy5XhDzwsoSpWZsyLiS/1Vi2PYRl7 iosWYrNhNEiUH8GqNH+8A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:p0ymXvUTRh0=:sipArUs8ttHnIG0q0jbw0U PBqR52bw/HPfv5QazMqVuh/ZlQHvsMNgToZ59GN1KeUV8tx5FQ6qAYB1HROlm5WwpG3l/ayig KdNF4AFh+psftOcSPaiqFEvXC5wC7wiXTJL091Yy8bCbmoghmoB4AWJci4+fFTA2iSDbjYcMZ M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