[Bug 194204] getentropy(2): sys call from openbsd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 15 19:35:01 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194204

--- Comment #11 from Mateusz Guzik <mjg at FreeBSD.org> ---
> I think that's the wrong way to look at it; if we have a weak CSPRNG that needs to be fixed, regardless of the mechanism by which userland obtains entropy from kernel.

The way of looking at it was that if the compatibility mechanism is to be
provided it has to be not weaker than OpenBSD equivalent.

Entropy for the rest of the kernel is a very different issue.

> Seems like it could be implemented as a thin shim around the sysctl, no?  Why do we need a syscall for it?

sysctls are very slow, but that may be a somewhat weak point given the nature
of the request. given the abundance of free syscall numbers and the fact other
systems (OpenBSD, Linux) do it as a syscall I don't see a good reason to do it
differently.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list