HomeFreeBSD

Implement the CloudABI random_get() system call.

Description

Implement the CloudABI random_get() system call.

The random_get() system call works similar to getentropy()/getrandom()
on OpenBSD/Linux. It fills a buffer with random data.

This change introduces a new function, read_random_uio(), that is used
to implement read() on the random devices. We can call into this
function from within the CloudABI compatibility layer.

Approved by: secteam
Reviewed by: jmg, markm, wblock
Obtained from: https://github.com/NuxiNL/freebsd
Differential Revision: https://reviews.freebsd.org/D3053

Details

Provenance
edAuthored on
Reviewer
jmg
Differential Revision
D3053: Implement the CloudABI random_get() system call.
Parents
rS285548: Fix some error-handling bugs when core dump compression is enabled:
Branches
Unknown
Tags
Unknown