Page MenuHomeFreeBSD

getentropy(3): Trap non-API errnos from getrandom(2) and abort
ClosedPublic

Authored by cem on Sep 5 2018, 3:54 PM.
Tags
None
Referenced Files
F110659507: D17050.id47701.diff
Fri, Feb 21, 2:03 PM
F110654121: D17050.id49363.diff
Fri, Feb 21, 12:21 PM
Unknown Object (File)
Thu, Feb 20, 12:54 AM
Unknown Object (File)
Tue, Feb 18, 8:18 PM
Unknown Object (File)
Sat, Feb 15, 12:38 AM
Unknown Object (File)
Wed, Feb 12, 12:49 AM
Unknown Object (File)
Tue, Feb 11, 7:43 PM
Unknown Object (File)
Fri, Jan 24, 9:34 PM
Subscribers

Details

Summary

Additionally, reconcile our abort behavior with arc4random(3). Unlike
SIGABRT, SIGKILL cannot be caught by the user program. These failures
are fatal conditions and should not return to the caller, as they did in
the instance that resulted in D17049.

While here, fix some minor typos in a comment.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable