random: make CPU trust a boot parameter
authorKees Cook <keescook@chromium.org>
Mon, 27 Aug 2018 21:51:54 +0000 (14:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:25 +0000 (11:46 +0200)
commit08d453eca365ac4fd93b559662248108885d631e
treeb0d75b1f16198c66f2e64fa5757e81aff0361629
parent4395f2316066cf6d6afc8788b9491d9168a060e2
random: make CPU trust a boot parameter

commit 9b25436662d5fb4c66eb527ead53cab15f596ee0 upstream.

Instead of forcing a distro or other system builder to choose
at build time whether the CPU is trusted for CRNG seeding via
CONFIG_RANDOM_TRUST_CPU, provide a boot-time parameter for end users to
control the choice. The CONFIG will set the default state instead.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/kernel-parameters.txt
drivers/char/Kconfig
drivers/char/random.c