aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-03-22 21:43:12 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2022-03-25 08:49:40 -0600
commitd97c68d178fbf8aaaf21b69b446f2dfb13909316 (patch)
tree4d3bf4711e8ba72c7ffe04e619559c15c4e1d38b /tools/perf/util/scripting-engines/trace-event-python.c
parentrandom: skip fast_init if hwrng provides large chunk of entropy (diff)
downloadwireguard-linux-d97c68d178fbf8aaaf21b69b446f2dfb13909316.tar.xz
wireguard-linux-d97c68d178fbf8aaaf21b69b446f2dfb13909316.zip
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions