Project

General

Profile

Actions

Feature #5802

closed

want getentropy(3C)

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

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2015-04-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

getentropy is an OpenBSD system call that's at the heart of the implementation of arc4random(). getentropy in designed to get contents from /dev/urandom without using a file descriptor and thus negating the potential for EMFILE or a chroot. In this case, it will be a libc wrapper around a more general interface for fetching random and psuedo-random data from the kernel.

Actions #1

Updated by Electric Monk about 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