On Mon, Jul 03, 2017 at 12:37:59PM +0200, Harald Freudenberger wrote: > Currently /dev/hwrng uses default device node permissions > which is 0600. So by default the device node is not accessible > by an ordinary user. Some distros do rewrite the device node > permissions via udev rule, others don't. This patch provides > 0444 as the new mode value and so makes the device node > accessible for all users without the need to have udev rules > rewriting the access rights. > > Signed-off-by: Harald Freudenberger <freude@xxxxxxxxxxxxxxxxxx> Hmm, one usage scenario for /dev/hwrng is to feed rngd which then feeds into /dev/random. In that case it may not be desirable to allow arbitrary access to hwrgn since it may cause the rate of entropy going into /dev/random to go down. In any case, as you noted userspace can change this anyway so I don't see why we need to make this policy change in the kernel. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt