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

Also available in: Atom PDF