Skip to content

Commit 8542a8e

Browse files
Jiandi AnZhengShunQian
authored andcommitted
ima: Fix Kconfig to select TPM 2.0 CRB interface
[ Upstream commit fac37c6 ] TPM_CRB driver provides TPM CRB 2.0 support. If it is built as a module, the TPM chip is registered after IMA init. tpm_pcr_read() in IMA fails and displays the following message even though eventually there is a 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 the kernel and initializes before IMA. Signed-off-by: Jiandi An <[email protected]> Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ace5524 commit 8542a8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/integrity/ima/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config IMA
1010
select CRYPTO_HASH_INFO
1111
select TCG_TPM if HAS_IOMEM && !UML
1212
select TCG_TIS if TCG_TPM && X86
13+
select TCG_CRB if TCG_TPM && ACPI
1314
select TCG_IBMVTPM if TCG_TPM && PPC_PSERIES
1415
help
1516
The Trusted Computing Group(TCG) runtime Integrity

0 commit comments

Comments
 (0)