android_kernel_motorola_sm6375/security/integrity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Randy Dunlap e6f66a0ad7 IMA: allow/fix UML builds
[ Upstream commit 644f17412f5acf01a19af9d04a921937a2bc86c6 ]

UML supports HAS_IOMEM since 0bbadafdc49d (um: allow disabling
NO_IOMEM).

Current IMA build on UML fails on allmodconfig (with TCG_TPM=m):

ld: security/integrity/ima/ima_queue.o: in function `ima_add_template_entry':
ima_queue.c:(.text+0x2d9): undefined reference to `tpm_pcr_extend'
ld: security/integrity/ima/ima_init.o: in function `ima_init':
ima_init.c:(.init.text+0x43f): undefined reference to `tpm_default_chip'
ld: security/integrity/ima/ima_crypto.o: in function `ima_calc_boot_aggregate_tfm':
ima_crypto.c:(.text+0x1044): undefined reference to `tpm_pcr_read'
ld: ima_crypto.c:(.text+0x10d8): undefined reference to `tpm_pcr_read'

Modify the IMA Kconfig entry so that it selects TCG_TPM if HAS_IOMEM
is set, regardless of the UML Kconfig setting.
This updates TCG_TPM from =m to =y and fixes the linker errors.

Fixes: f4a0391dfa ("ima: fix Kconfig dependencies")
Cc: Stable <[email protected]> # v5.14+
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Anton Ivanov <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: [email protected]
Signed-off-by: Mimi Zohar <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-08-30 16:27:11 +02:00
..
evm evm: Complete description of evm_inode_setattr() 2023-07-27 08:37:06 +02:00
ima IMA: allow/fix UML builds 2023-08-30 16:27:11 +02:00
platform_certs efi: Add iMac Pro 2017 to uefi skip cert quirk 2023-01-18 11:41:49 +01:00
digsig.c integrity: Fix memory leakage in keyring allocation error path 2023-01-18 11:41:03 +01:00
digsig_asymmetric.c
iint.c integrity: Fix possible multiple allocation in integrity_inode_get() 2023-07-27 08:37:25 +02:00
integrity.h
integrity_audit.c
Kconfig
Makefile