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
Unknown Object (File)
Wed, Mar 20, 11:59 PM
Unknown Object (File)
Thu, Mar 14, 11:37 AM
Unknown Object (File)
Jan 1 2024, 6:39 AM
Unknown Object (File)
Dec 30 2023, 6:41 AM
Unknown Object (File)
Dec 23 2023, 9:25 AM
Unknown Object (File)
Dec 21 2023, 3:23 AM
Unknown Object (File)
Nov 29 2023, 3:28 AM
Unknown Object (File)
Nov 29 2023, 2:59 AM
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