[PATCH v9] seedrng: import SeedRNG utility for kernel RNG seed files

Jason A. Donenfeld Jason at zx2c4.com
Sat Apr 30 13:33:35 UTC 2022


Hi Bernhard,

On Sat, Apr 30, 2022 at 1:42 AM Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
> The tool sounds like it should fit in about 1k if we're forced to ioctl
> and cannot simply use the shell. We'd all be better off to remove that
> unnecessary ioctl bloat from the kernel and userspace. It does not make
> any sense at all.
> In shell it would probably be done in a few hundred bytes, once and for
> all.

I'm not quite able to parse this ramble here, but if you're upset that
the kernel interface isn't as nice as it should be, I share your
dismay. I've only inherited it after a several decade development
history of warts. I'm doing my best to clean up the kernel interface,
but compatibility is important, and there will always be old kernels.
So the interface is what it is, and that means addressing complex
error cases and ugly ioctls. Sorry.

Jason


More information about the busybox mailing list