forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/security/integrity/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 config INTEGRITY
34 bool "Integrity subsystem"
....@@ -17,8 +18,8 @@
1718
1819 config INTEGRITY_SIGNATURE
1920 bool "Digital signature verification using multiple keyrings"
20
- depends on KEYS
2121 default n
22
+ select KEYS
2223 select SIGNATURE
2324 help
2425 This option enables digital signature verification support
....@@ -51,6 +52,35 @@
5152 .evm keyrings be signed by a key on the system trusted
5253 keyring.
5354
55
+config INTEGRITY_PLATFORM_KEYRING
56
+ bool "Provide keyring for platform/firmware trusted keys"
57
+ depends on INTEGRITY_ASYMMETRIC_KEYS
58
+ depends on SYSTEM_BLACKLIST_KEYRING
59
+ help
60
+ Provide a separate, distinct keyring for platform trusted keys, which
61
+ the kernel automatically populates during initialization from values
62
+ provided by the platform for verifying the kexec'ed kerned image
63
+ and, possibly, the initramfs signature.
64
+
65
+config LOAD_UEFI_KEYS
66
+ depends on INTEGRITY_PLATFORM_KEYRING
67
+ depends on EFI
68
+ def_bool y
69
+
70
+config LOAD_IPL_KEYS
71
+ depends on INTEGRITY_PLATFORM_KEYRING
72
+ depends on S390
73
+ def_bool y
74
+
75
+config LOAD_PPC_KEYS
76
+ bool "Enable loading of platform and blacklisted keys for POWER"
77
+ depends on INTEGRITY_PLATFORM_KEYRING
78
+ depends on PPC_SECURE_BOOT
79
+ default y
80
+ help
81
+ Enable loading of keys to the .platform keyring and blacklisted
82
+ hashes to the .blacklist keyring for powerpc based platforms.
83
+
5484 config INTEGRITY_AUDIT
5585 bool "Enables integrity auditing support "
5686 depends on AUDIT
....@@ -66,7 +96,7 @@
6696 be enabled by specifying 'integrity_audit=1' on the kernel
6797 command line.
6898
69
-source security/integrity/ima/Kconfig
70
-source security/integrity/evm/Kconfig
99
+source "security/integrity/ima/Kconfig"
100
+source "security/integrity/evm/Kconfig"
71101
72102 endif # if INTEGRITY