[PATCH] 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 1662859..f5b4bcb 100755
--- a/urandom
+++ b/urandom
@@ -27,13 +27,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.5.6.5


--------------000702040603070504000307--





More information about the Pkg-sysvinit-devel mailing list