RFC: initialize /dev/urandom, is it necessary? Can we do it in a better way?

Roberto A. Foglietta roberto.foglietta at gmail.com
Sat Sep 23 14:54:32 UTC 2023


On Sat, 23 Sept 2023 at 16:30, Steffen Nurpmeso <steffen at sdaoden.eu> wrote:
>
> Roberto A. Foglietta wrote in
>  <CAJGKYO64T0R+zyym1Dbj2e7-ZUfaj8-6wD3SuTaZY8EKk2U0hg at mail.gmail.com>:
>  |On Thu, 21 Sept 2023 at 20:05, Steffen Nurpmeso <steffen at sdaoden.eu> wrote:
>  |>|IMHO, I vote for /sys rather than /proc/debug. The capability to
>
> There already _is_ a debugfs interface?

Nothing which is interesting, AFAIK

redfishos:~ # find /sys -name rand\*
/sys/class/mem/random
/sys/devices/virtual/mem/random
/sys/module/random

redfishos:~ # cat /sys/class/mem/random/dev
1:8
redfishos:~ # cat /sys/devices/virtual/mem/random/uevent
MAJOR=1
MINOR=8
DEVNAME=random
DEVMODE=0666
redfishos:~ # cat /sys/module/random/parameters/ratelimit_disable
0

Until someone add a patch that creates something like

entropy_pool_access_status (RW)
cat: disable write append hashing (were hashing is like append but
hashing before)

entropy_pool_access (RW)
cat: number of bytes of data, number of entropy bit

> This must be new then.

Just a couple more of parameters

> I do not have debugfs no more, it is of no
> use for me.  Sorry if i have missed anything.

You are welcome, do not worry about.


Best regards, R-


More information about the busybox mailing list