summaryrefslogtreecommitdiffstats
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-10-14 10:59:56 +0000
committermarkm <markm@FreeBSD.org>2000-10-14 10:59:56 +0000
commita8d2363750f62cf99c9e91b3edb208a5862543e9 (patch)
tree9b8a3e92ad99aac2e9f68f5d325968f510b05f7e /sys/modules/Makefile
parent4dcc092204f26668eab762bae3b04da3bc9007b5 (diff)
downloadFreeBSD-src-a8d2363750f62cf99c9e91b3edb208a5862543e9.zip
FreeBSD-src-a8d2363750f62cf99c9e91b3edb208a5862543e9.tar.gz
After some complaints about the dir names, the random device is
now in dirs called sys/*/random/ instead of sys/*/randomdev/*. Introduce blocking, but only at startup; the random device will block until the first reseed happens to prevent clients from using untrustworthy output. Provide a read_random() call for the rest of the kernel so that the entropy device does not need to be present. This means that things like IPX no longer need to have "device random" hardcoded into thir kernel config. The downside is that read_random() will provide very poor output until the entropy device is loaded and reseeded. It is recommended that developers do NOT use the read_random() call; instead, they should use arc4random() which internally uses read_random(). Clean up the mutex and locking code a bit; this makes it possible to unload the module again.
Diffstat (limited to 'sys/modules/Makefile')
-rw-r--r--sys/modules/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 94c3a57..301b34a 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -3,14 +3,14 @@
# XXX present but broken: ip_mroute_mod
.if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT)
-_randomdev= randomdev
+_random= random
.endif
SUBDIR= 3dfx accf_data accf_http agp aha amr an aue \
cam ccd cd9660 coda cue dc ed fdesc fxp if_disc if_ef \
if_ppp if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kernfs kue \
md mfs mii mlx msdos ncp netgraph nfs ntfs nullfs \
- nwfs pcn portal procfs ${_randomdev} \
+ nwfs pcn portal procfs ${_random} \
rl rp sf sis sk sn sound ste syscons ti tl twe tx \
udbp ugen uhid ukbd ulpt umapfs umass umodem ums union urio usb \
vinum vn vpo vr wb wx xl
OpenPOWER on IntegriCloud