random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOM
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 10 Feb 2020 13:00:15 +0000 (13:00 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 28 Feb 2020 04:21:52 +0000 (23:21 -0500)
Listing the set of host architectures does not scale.
Depend instead on the existence of the architecture rng.

This will allow RANDOM_TRUST_CPU to be selected on arm64. Today
ARCH_RANDOM is only selected by x86, s390, and powerpc, so this does not
adversely affect other architectures.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200210130015.17664-5-mark.rutland@arm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/Kconfig

index 26956c0069876d1da5a75394e43faf8be15ccee3..84207d5a9bb0cd9f9c5eb2fbc4a47ac910913342 100644 (file)
@@ -539,7 +539,7 @@ endmenu
 
 config RANDOM_TRUST_CPU
        bool "Trust the CPU manufacturer to initialize Linux's CRNG"
-       depends on X86 || S390 || PPC
+       depends on ARCH_RANDOM
        default n
        help
        Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or