summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-09-15 08:36:14 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-09-15 08:36:14 +0000
commit2c0e1a9c28da7d12afbbf00fb9b11746fce32a68 (patch)
treed7532ae833ae2edc56650dafc6b14779342cdc96 /sys-apps/rng-tools
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-2c0e1a9c28da7d12afbbf00fb9b11746fce32a68.tar.gz
gentoo-2-2c0e1a9c28da7d12afbbf00fb9b11746fce32a68.tar.bz2
gentoo-2-2c0e1a9c28da7d12afbbf00fb9b11746fce32a68.zip
Bug #292239: Make remix of /dev/urandom optional.
(Portage version: 2.2_rc75/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/rng-tools')
-rw-r--r--sys-apps/rng-tools/ChangeLog6
-rw-r--r--sys-apps/rng-tools/files/2-r2/rngd7
-rw-r--r--sys-apps/rng-tools/files/2-r2/rngd-conf5
3 files changed, 14 insertions, 4 deletions
diff --git a/sys-apps/rng-tools/ChangeLog b/sys-apps/rng-tools/ChangeLog
index e7fd0cbc34a7..99b1c0eac18a 100644
--- a/sys-apps/rng-tools/ChangeLog
+++ b/sys-apps/rng-tools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/rng-tools
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/ChangeLog,v 1.28 2010/09/15 08:30:51 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/ChangeLog,v 1.29 2010/09/15 08:36:14 robbat2 Exp $
+
+ 15 Sep 2010; Robin H. Johnson <robbat2@gentoo.org> files/2-r2/rngd,
+ files/2-r2/rngd-conf:
+ Bug #292239: Make remix of /dev/urandom optional.
*rng-tools-2-r3 (15 Sep 2010)
diff --git a/sys-apps/rng-tools/files/2-r2/rngd b/sys-apps/rng-tools/files/2-r2/rngd
index 8d8cb2c07f3f..76ac703069bc 100644
--- a/sys-apps/rng-tools/files/2-r2/rngd
+++ b/sys-apps/rng-tools/files/2-r2/rngd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/files/2-r2/rngd,v 1.1 2009/11/10 03:15:06 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rng-tools/files/2-r2/rngd,v 1.2 2010/09/15 08:36:14 robbat2 Exp $
depend() {
need localmount
@@ -10,8 +10,9 @@ depend() {
BINARY=/usr/sbin/rngd
# Do NOT add /dev/tpm to this.
-DEFAULT_DEVICE="/dev/hw_random* /dev/hwrandom* /dev/i810_rng /dev/hwrng* /dev/urandom"
+DEFAULT_DEVICE="/dev/hw_random* /dev/hwrandom* /dev/i810_rng /dev/hwrng*"
DEFAULT_TPM_DEVICE="/dev/tpm*"
+[ $DO_NOT_REMIX_URANDOM -eq 0 ] && DEFAULT_DEVICE="${DEFAULT_DEVICE} /dev/urandom"
find_device() {
# The echo is to cause globbing
diff --git a/sys-apps/rng-tools/files/2-r2/rngd-conf b/sys-apps/rng-tools/files/2-r2/rngd-conf
index d6efc7466f5c..0702ece0ae14 100644
--- a/sys-apps/rng-tools/files/2-r2/rngd-conf
+++ b/sys-apps/rng-tools/files/2-r2/rngd-conf
@@ -20,3 +20,8 @@ NO_TPM=0
# Fill watermark
# 0 <= n <= 4096
WATERMARK=2048
+
+# Bug #292239: Remixing /dev/urandom back into /dev/random is considered a
+# security vulnerability in some cases where not enough entropy is present on
+# systems.
+DO_NOT_REMIX_URANDOM=0