Project

General

Profile

Actions

Feature #5803

closed

want getrandom(2)

Added by Robert Mustacchi over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
kernel
Start date:
2015-04-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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.

Actions #1

Updated by Electric Monk over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

git commit 9d12795f87b63c2e39e87bff369182edd34677d3

commit  9d12795f87b63c2e39e87bff369182edd34677d3
Author: Robert Mustacchi <rm@joyent.com>
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 <jerry.jelinek@joyent.com>
    Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Garrett D'Amore <garrett@damore.org>

Actions

Also available in: Atom PDF