summaryrefslogtreecommitdiffstats
path: root/sys/modules/random
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/random
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/random')
-rw-r--r--sys/modules/random/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile
index 904015a..5b2a261 100644
--- a/sys/modules/random/Makefile
+++ b/sys/modules/random/Makefile
@@ -1,10 +1,11 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../dev/randomdev
+.PATH: ${.CURDIR}/../../dev/random
.PATH: ${.CURDIR}/../../crypto/blowfish
KMOD = random
SRCS = bus_if.h device_if.h randomdev.c yarrow.c hash.c
SRCS += bf_cbc.c bf_skey.c bf_enc.c
+SRCS += vnode_if.h
CFLAGS += -I${.CURDIR}/../..
NOMAN = yes
OpenPOWER on IntegriCloud