linux/Documentation
Jason A. Donenfeld d97c68d178 random: treat bootloader trust toggle the same way as cpu trust toggle
If CONFIG_RANDOM_TRUST_CPU is set, the RNG initializes using RDRAND.
But, the user can disable (or enable) this behavior by setting
`random.trust_cpu=0/1` on the kernel command line. This allows system
builders to do reasonable things while avoiding howls from tinfoil
hatters. (Or vice versa.)

CONFIG_RANDOM_TRUST_BOOTLOADER is basically the same thing, but regards
the seed passed via EFI or device tree, which might come from RDRAND or
a TPM or somewhere else. In order to allow distros to more easily enable
this while avoiding those same howls (or vice versa), this commit adds
the corresponding `random.trust_bootloader=0/1` toggle.

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Graham Christensen <graham@grahamc.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Link: https://github.com/NixOS/nixpkgs/pull/165355
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-25 08:49:40 -06:00
..
2022-03-24 18:07:03 -07:00
2021-12-10 14:28:01 -07:00
2022-02-15 07:47:52 -07:00
2022-03-22 17:03:12 -07:00
2022-03-24 19:48:57 -07:00
2022-03-24 18:07:03 -07:00
2022-03-07 13:54:59 +01:00
2022-03-04 13:41:57 +10:00
2021-12-31 14:39:28 +01:00
2022-03-21 19:46:41 -07:00
2022-03-22 14:39:12 -07:00
2022-03-21 20:47:54 -07:00
2022-02-24 12:26:13 -07:00
2022-01-22 09:02:57 +02:00
2022-03-24 13:13:26 -07:00
2022-03-23 14:51:35 -07:00
2022-03-24 11:58:57 -07:00
2022-03-21 14:35:11 -07:00