android_kernel_motorola_sm6375/security/integrity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann e2614ab16a ima: rework CONFIG_IMA dependency block
commit 91e326563ee34509c35267808a4b1b3ea3db62a8 upstream.

Changing the direct dependencies of IMA_BLACKLIST_KEYRING and
IMA_LOAD_X509 caused them to no longer depend on IMA, but a
a configuration without IMA results in link failures:

arm-linux-gnueabi-ld: security/integrity/iint.o: in function `integrity_load_keys':
iint.c:(.init.text+0xd8): undefined reference to `ima_load_x509'

aarch64-linux-ld: security/integrity/digsig_asymmetric.o: in function `asymmetric_verify':
digsig_asymmetric.c:(.text+0x104): undefined reference to `ima_blacklist_keyring'

Adding explicit dependencies on IMA would fix this, but a more reliable
way to do this is to enclose the entire Kconfig file in an 'if IMA' block.
This also allows removing the existing direct dependencies.

Fixes: be210c6d3597f ("ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-10-10 21:46:46 +02:00
..
evm evm: Complete description of evm_inode_setattr() 2023-07-27 08:37:06 +02:00
ima ima: rework CONFIG_IMA dependency block 2023-10-10 21:46:46 +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