summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-14 00:05:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-14 00:05:43 +0000
commit78d22eb17c7d70589d372ab81ed63625087cf907 (patch)
tree4b356a275f4d61c267456ba47da0594dea09a30e /etc
parente5d5cff6955e34c53524b76dc726d383ef4fdb71 (diff)
in the most trivial way, request that the kernel arc4random re-key after
we run netstart ok tedu, djm liked it too
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 7b3fdb29928..5a3655c2add 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.347 2011/01/10 06:44:49 deraadt Exp $
+# $OpenBSD: rc,v 1.348 2011/01/14 00:05:42 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -294,6 +294,7 @@ if [ -f /etc/resolv.conf.save ]; then
touch /etc/resolv.conf
fi
. /etc/netstart
+echo rekey > /dev/arandom # any write triggers an RC4 rekey
if [ X"${pf}" != X"NO" ]; then
if [ -f ${pf_rules} ]; then