Re: [PATCH] random: add a config option to trust the CPU's hwrng

From: Ken Moffat
Date: Wed Jul 18 2018 - 20:19:31 EST


On 18 July 2018 at 18:21, Ken Moffat <zarniwhoop73@xxxxxxxxxxxxxx> wrote:
> On 18 July 2018 at 02:43, Theodore Ts'o <tytso@xxxxxxx> wrote:
>>
>> This will prevent getrandom(2) from blocking, if there is a
>> willingness to trust the CPU manufacturer.

> For me, it seems a price worth paying. I've got bigger problems than
> _worriying_ about my government, or yours, spying on me, so I'd like to take
> the risk.
>
Sadly, my enthusiasm was premature: the Kaveri doesn't have a hwrng. So
although I've enabled the device under the HW_RANDOM options, nothing
comes out and this "fix" will only work for some machines.

For me, I'll have to go to plan B (revise the bootscript and/or patch unbound).
I see that Nixos seems to bind /dev/urandom to /var/lib/unbound/dev/random
so I guess that ought to work. Sorry for the noise.

Äen