[PATCH 1/5] Remove code that tried to write to the read-only file /proc/sys/kernel/random/poolsize This code was added in 2004 and has never worked.
John Denker
jsd at av8n.com
Sat Sep 11 16:17:32 UTC 2010
---
urandom | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/urandom b/urandom
index 30b572e..1007147 100755
--- a/urandom
+++ b/urandom
@@ -35,13 +35,6 @@ case "$1" in
# which is the size of the entropy pool
if [ -f "$SAVEDFILE" ]
then
- # Handle locally increased pool size
- SAVEDSIZE="$(find "$SAVEDFILE" -printf "%s")"
- if [ "$SAVEDSIZE" -gt "$POOLSIZE" ]
- then
- [ -w /proc/sys/kernel/random/poolsize ] && echo $POOLSIZE > /proc/sys/kernel/random/poolsize
- POOLSIZE=$SAVEDSIZE
- fi
cat "$SAVEDFILE" >/dev/urandom
fi
rm -f $SAVEDFILE
--
1.7.0.4
--------------080101050006000802060209--
More information about the Pkg-sysvinit-devel
mailing list