New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/modules/security/rngd: Disable by default #96092
Conversation
Apologies for not testing this change: I'm fairly new to NixOS and I have no idea (yet) how I would test locally a change to |
|
Hmm, why did you remove the udev rules? |
I removed the udev rules because they were all for hardware that's already handled by the kernel directly. |
@nbraud Perhaps we should remove rngd altogether, but this is the only hardware that rngd helps for anyway. If someone explicitly enables it presumably they want it for their devices? |
Removing the It's possible some people might want
Presumably, but (as mentioned above) there doesn't seem to be a way, in the module, to point |
|
`rngd` seems to be the root cause for slow boot issues, and its functionality is redundant since kernel v3.17 (2014), which introduced a `krngd` task (in kernel space) that takes care of pulling in data from hardware RNGs: > commit be4000bc4644d027c519b6361f5ae3bbfc52c347 > Author: Torsten Duwe <duwe@lst.de> > Date: Sat Jun 14 23:46:03 2014 -0400 > > hwrng: create filler thread > > This can be viewed as the in-kernel equivalent of hwrngd; > like FUSE it is a good thing to have a mechanism in user land, > but for some reasons (simplicity, secrecy, integrity, speed) > it may be better to have it in kernel space. > > This patch creates a thread once a hwrng registers, and uses > the previously established add_hwgenerator_randomness() to feed > its data to the input pool as long as needed. A derating factor > is used to bias the entropy estimation and to disable this > mechanism entirely when set to zero. Closes: #96067
Thanks @worldofpeace, and sorry for going silent: I've been pretty sick the last month+, and the workstation I installed NixOS on decided to just die. (I'm currently RMAing the motherboard. >_>') |
Per @shlevy's request on NixOS#96092.
Motivation for this change
rngd
seems to be the root cause for slow boot issues, and its functionality isredundant since kernel v3.17 (2014), which introduced a
krngd
task (in kernelspace) that takes care of pulling in data from hardware RNGs:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)