[PATCH 1/4] 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


--------------070700040602060407090709
Content-Type: text/x-patch;
 name="0002-Calculate-POOLBYTES-correctly.-Note-that-proc-sys-ke.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-Calculate-POOLBYTES-correctly.-Note-that-proc-sys-ke.pa";
 filename*1="tch"



More information about the Pkg-sysvinit-devel mailing list