mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Default to harvesting everything. This is to help give a faster
startup. harvesting can be turned OFF in etc/rc.d/* if it is a burden.
This commit is contained in:
parent
a50f2c9f42
commit
2a8b87d883
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128320
|
@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
|
|||
static int read_random_phony(void *, int);
|
||||
|
||||
/* Structure holding the desired entropy sources */
|
||||
struct harvest_select harvest = { 0, 0, 0, 0 };
|
||||
struct harvest_select harvest = { 1, 1, 1, 0 };
|
||||
|
||||
/* hold the address of the routine which is actually called if
|
||||
* the randomdev is loaded
|
||||
|
|
|
@ -145,17 +145,17 @@ random_yarrow_init(void)
|
|||
o = SYSCTL_ADD_PROC(&random_clist,
|
||||
SYSCTL_CHILDREN(random_sys_harvest_o),
|
||||
OID_AUTO, "ethernet", CTLTYPE_INT | CTLFLAG_RW,
|
||||
&harvest.ethernet, 0, random_check_boolean, "I",
|
||||
&harvest.ethernet, 1, random_check_boolean, "I",
|
||||
"Harvest NIC entropy");
|
||||
o = SYSCTL_ADD_PROC(&random_clist,
|
||||
SYSCTL_CHILDREN(random_sys_harvest_o),
|
||||
OID_AUTO, "point_to_point", CTLTYPE_INT | CTLFLAG_RW,
|
||||
&harvest.point_to_point, 0, random_check_boolean, "I",
|
||||
&harvest.point_to_point, 1, random_check_boolean, "I",
|
||||
"Harvest serial net entropy");
|
||||
o = SYSCTL_ADD_PROC(&random_clist,
|
||||
SYSCTL_CHILDREN(random_sys_harvest_o),
|
||||
OID_AUTO, "interrupt", CTLTYPE_INT | CTLFLAG_RW,
|
||||
&harvest.interrupt, 0, random_check_boolean, "I",
|
||||
&harvest.interrupt, 1, random_check_boolean, "I",
|
||||
"Harvest IRQ entropy");
|
||||
o = SYSCTL_ADD_PROC(&random_clist,
|
||||
SYSCTL_CHILDREN(random_sys_harvest_o),
|
||||
|
|
Loading…
Reference in a new issue