Linux introduced the getrandom(2) system call as a way to get at both /dev/random and /dev/urandom in a blocking and non-blocking fashion without the use of a file descriptor or hvaing /dev/ in a chroot. As part of support for the lx brand and for arc4random() we're adding a private system call for this function. At this time we're not making it a committed interface as we're waiting on determining where glibc and others expose it so as to maximize compatibility.
As part of this we're adding a new kcf routine which allows access to a blocking /dev/random similar to that which you can get from the /dev/random today if opened without O_NONBLOCK.
Updated by Electric Monk over 7 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit 9d12795f87b63c2e39e87bff369182edd34677d3 Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2015-04-12T23:04:38.000Z 5830 want arc4random(3C) suite 5802 want getentropy(3C) 5803 want getrandom(2) 5804 want explicit_bzero(3C) 5805 want MC_INHERIT_ZERO 5806 uuid_generate can leak its cache in edge conditions Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Joshua M. Clulow <firstname.lastname@example.org> Reviewed by: Josef 'Jeff' Sipek <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Approved by: Garrett D'Amore <email@example.com>