Skip to content

Commit 99716b7

Browse files
committed
KEYS: Make the system trusted keyring depend on the asymmetric key type
Make the system trusted keyring depend on the asymmetric key type as there's not a lot of point having it if you can't then load asymmetric keys onto it. This requires the ASYMMETRIC_KEY_TYPE to be made a bool, not a tristate, as the Kconfig language doesn't then correctly force ASYMMETRIC_KEY_TYPE to 'y' rather than 'm' if SYSTEM_TRUSTED_KEYRING is 'y'. Making SYSTEM_TRUSTED_KEYRING *select* ASYMMETRIC_KEY_TYPE instead doesn't work as the Kconfig interpreter then wrongly complains about dependency loops. Signed-off-by: David Howells <dhowells@redhat.com>
1 parent cfb664f commit 99716b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

certs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ config MODULE_SIG_KEY
1717
config SYSTEM_TRUSTED_KEYRING
1818
bool "Provide system-wide ring of trusted keys"
1919
depends on KEYS
20+
depends on ASYMMETRIC_KEY_TYPE
2021
help
2122
Provide a system keyring to which trusted keys can be added. Keys in
2223
the keyring are considered to be trusted. Keys may be added at will

crypto/asymmetric_keys/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
menuconfig ASYMMETRIC_KEY_TYPE
2-
tristate "Asymmetric (public-key cryptographic) key type"
2+
bool "Asymmetric (public-key cryptographic) key type"
33
depends on KEYS
44
help
55
This option provides support for a key type that holds the data for

0 commit comments

Comments
 (0)