summaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-02-10 18:29:37 +0000
committerjhb <jhb@FreeBSD.org>2016-02-10 18:29:37 +0000
commit0c6be1966acf44df2e25af538331a5b5806edc56 (patch)
tree1eef1a4f008d805dbb8569a65b92557941760b25 /contrib/libucl
parentc68557a9bd7089609250f173b1b1bdb906f8d141 (diff)
downloadFreeBSD-src-0c6be1966acf44df2e25af538331a5b5806edc56.zip
FreeBSD-src-0c6be1966acf44df2e25af538331a5b5806edc56.tar.gz
Adjust initialization of random(9) so it is usable earlier.
A few existing SYSINITs expect the in-kernel PRNG (random(9)) to be useable at SI_SUB_RANDOM / SI_ORDER_ANY. However, the random(4) overhaul merged for 10.0 performs all of its initialization at SI_SUB_DRIVERS (since it is tied in with creating the /dev/random character device). This has changed in HEAD where the random initialization is split such that the in-kernel random(9) is initialized at SI_SUB_RANDOM and the supporting bits for userland random(4) (such as /dev/random) are initialized later. However, the changes in HEAD are large and invasive. Instead, this change is being directly committed to stable/10. This change moves most of the random(9)/random(4) initialization to SI_SUB_RANDOM with the exception that the creation of the harvesting kernel process and the /dev/random character device are deferred to new SYSINITs that run at SI_SUB_DRIVERS. This fixes the "random device not loaded; using insecure entropy" message output during boot on some systems. PR: 205800 Reviewed by: markm, so@ Approved by: so Approved by: re (gjb) Tested by: Mark Saad <nonesuch@longcount.org>
Diffstat (limited to 'contrib/libucl')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud