Received: by 10.223.185.116 with SMTP id b49csp4653585wrg; Tue, 6 Mar 2018 21:27:53 -0800 (PST) X-Google-Smtp-Source: AG47ELutG8c7Z8+lZntk16oBr6lODjQKBwPt6XJSOb4qx8XJvIHf5YBgOhKzjnfGM1L5EuhagNo5 X-Received: by 2002:a17:902:5716:: with SMTP id k22-v6mr19449329pli.229.1520400473347; Tue, 06 Mar 2018 21:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520400473; cv=none; d=google.com; s=arc-20160816; b=H8vLa2E63gKocxAxQkFFuGfUYM+cqfqcNJgQVPy3/vWZYgpFyFtUZlwja2FHyH2iGw yYy+/lqPKaFmJuLhWJorC0a69URRVPrlj6d/TTEUjnL6fwdukn6nv6BR+y8EMkcvqT/K UtmjcRb5gTmY2sZCg65dXjut9jdpX8dp6sgp0zyhOEwQV6+cTnDMKmvX3ZqHAXHPbSFW ElktXOP0180IoXyRxJA3Mavu0SpIWqLRjqegTQzOtEjFR8ijLkQ4g34KohZ1xjCDfyoZ qWqKcCKVoYUSB1Uqr2oICMwl9XGbMpDCC/cUSL9r7vHs04CIU2NRj1It7qVm7XTcDfFY SuIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=DF/epAOYmES9Py5PFnYmu3Y0T086vqGZhDJf5k5V6uw=; b=h+8ZOInWGl8EEJl1UN+ZmqmoFhDsWN50f1rwCoJfJA+BIbC3b6QJ+x6g3Dw00ul1hb mDd9ahGM9YEUZXRGVP/vtFUILeoKcEYDvqtDkv4VBaI+tp/xmL35CdzwavAbJ4aNuEzH wxgnLj3l/X1oPXCzopVk8I8l/AU9wF2IljhX3fRDbcl7eGNElt4Rru17VoCmJHow+Pvy 0iorLdFraOgWUSN/x4x28UsUVAG1F0Ux3ztDRRT+pkW++TwdP+WVECfWtidSAs56Vjio CmvlC/bxha52/G9WhCofkbVe0oEc3z8KuYZib6+Pw9W9C1WlDKblfxUlTzf80LCrWxkG NfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nvp2tqUu; dkim=pass header.i=@codeaurora.org header.s=default header.b=nvp2tqUu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si13303703pfg.333.2018.03.06.21.27.37; Tue, 06 Mar 2018 21:27:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nvp2tqUu; dkim=pass header.i=@codeaurora.org header.s=default header.b=nvp2tqUu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751096AbeCGF0m (ORCPT + 99 others); Wed, 7 Mar 2018 00:26:42 -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= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Jiandi An Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.