From patchwork Wed Mar 7 05:26:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiandi An X-Patchwork-Id: 10263379 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5CC2D60247 for ; Wed, 7 Mar 2018 05:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D78D292C8 for ; Wed, 7 Mar 2018 05:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41E63292EE; Wed, 7 Mar 2018 05:26:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9D0F292C8 for ; Wed, 7 Mar 2018 05:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751072AbeCGF0i (ORCPT ); Wed, 7 Mar 2018 00:26:38 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35352 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751023AbeCGF0h (ORCPT ); Wed, 7 Mar 2018 00:26:37 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B3E5260390; Wed, 7 Mar 2018 05:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520400396; bh=KThbcq5L/pZ99NUHToxiPEBt+xWWxtQnaurFD8Pensw=; h=From:To:Cc:Subject:Date:From; b=nvp2tqUuGajkyiV5APNBlCVM6EGMsN+cnQRlvD2BO3GJI368lKdjivhMb2pFb040c TD/LZEeNkinL8/zmxupkDhKk5iN52sBPL7kPBoxn2WIqLxRVluwSRLmCtI998XG830 6FSGLTt8Ns+ukiKu0aUBptf9SOzG/Xq1wZRqXglk= Received: from anjiandi-ubuntu.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: anjiandi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2CCB560390; Wed, 7 Mar 2018 05:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520400396; bh=KThbcq5L/pZ99NUHToxiPEBt+xWWxtQnaurFD8Pensw=; h=From:To:Cc:Subject:Date:From; b=nvp2tqUuGajkyiV5APNBlCVM6EGMsN+cnQRlvD2BO3GJI368lKdjivhMb2pFb040c TD/LZEeNkinL8/zmxupkDhKk5iN52sBPL7kPBoxn2WIqLxRVluwSRLmCtI998XG830 6FSGLTt8Ns+ukiKu0aUBptf9SOzG/Xq1wZRqXglk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2CCB560390 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=anjiandi@codeaurora.org From: Jiandi An To: zohar@linux.vnet.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, anjiandi@codeaurora.org Cc: linux-integrity@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] security: Fix IMA Kconfig for dependencies on ARM64 Date: Tue, 6 Mar 2018 23:26:26 -0600 Message-Id: <1520400386-17674-1-git-send-email-anjiandi@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP TPM_CRB driver is the TPM support for ARM64. If it is built as module, TPM chip is registered after IMA init. tpm_pcr_read() in IMA driver would fail and display the following message even though eventually there is TPM chip on the system: ima: No TPM chip found, activating TPM-bypass! (rc=-19) Fix IMA Kconfig to select TPM_CRB so TPM_CRB driver is built in kernel and initializes before IMA driver. Signed-off-by: Jiandi An --- security/integrity/ima/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index 35ef693..6a8f677 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -10,6 +10,7 @@ config IMA select CRYPTO_HASH_INFO select TCG_TPM if HAS_IOMEM && !UML select TCG_TIS if TCG_TPM && X86 + select TCG_CRB if TCG_TPM && ACPI select TCG_IBMVTPM if TCG_TPM && PPC_PSERIES help The Trusted Computing Group(TCG) runtime Integrity