mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Start the entropy device insecure/unblocked. I'll be handing over
responsibility for critical randomness requirements (like sshd) to rc.d/* Requested by: many
This commit is contained in:
parent
aa355a2679
commit
587d5fc63b
2 changed files with 3 additions and 5 deletions
|
|
@ -108,9 +108,7 @@ random_read(struct cdev *dev __unused, struct uio *uio, int flag)
|
|||
if (flag & IO_NDELAY)
|
||||
error = EWOULDBLOCK;
|
||||
else {
|
||||
/* No complaints please. This is temporary! */
|
||||
printf("Entropy device is blocking. "
|
||||
"Dance fandango on keyboard to unblock.\n");
|
||||
printf("Entropy device is blocking.\n");
|
||||
error = tsleep(&random_systat,
|
||||
PUSER | PCATCH, "block", 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ struct random_systat random_yarrow = {
|
|||
.read = random_yarrow_read,
|
||||
.write = random_yarrow_write,
|
||||
.reseed = random_yarrow_reseed,
|
||||
.seeded = 0,
|
||||
.seeded = 1,
|
||||
};
|
||||
|
||||
MALLOC_DEFINE(M_ENTROPY, "entropy", "Entropy harvesting buffers");
|
||||
|
|
@ -132,7 +132,7 @@ random_yarrow_init(void)
|
|||
o = SYSCTL_ADD_PROC(&random_clist,
|
||||
SYSCTL_CHILDREN(random_sys_o),
|
||||
OID_AUTO, "seeded", CTLTYPE_INT | CTLFLAG_RW,
|
||||
&random_systat.seeded, 0, random_check_boolean, "I",
|
||||
&random_systat.seeded, 1, random_check_boolean, "I",
|
||||
"Seeded State");
|
||||
|
||||
o = SYSCTL_ADD_NODE(&random_clist,
|
||||
|
|
|
|||
Loading…
Reference in a new issue