How to stop /dev/random population from entropy pool. Can I unload a module to do it?

StackOverflow https://stackoverflow.com/questions/7416917

  •  30-10-2019
  •  | 
  •  

Pergunta

I'm making a TRNG that talks to my PC via USB as a CDC device. I want to stop /dev/random from sourcing entropy from the entropy pool entirely and use my data instead. The theory is that the pool can be poisoned because of the way it currently collects entropy.

I know how to remove sources of entropy, but that requires hacking about in the kernel. It is an option but I would prefer to just unload the module that writes data to /dev/random. I've tried rmmod and modprobe stuff but can't figure out the name of the module. It is possible I'm just leaving out an extension or something but I'm new to the whole business of messing about with kernel modules so I can't really tell.

Also

modprobe -l | grep random

just gives me a list of hw_random stuff and

lsmod | grep random

gives me nothing.

So I'm not sure if I'm really on the right track.

Any pointers would be greatly appreciated.

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top