Package: initscripts Version: 2.86.ds1-61 Severity: normal Tags: 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. The underlying driver does not support changing poolsize. And if it ever did, the filesize of the random.seed would be a suboptimal way of implementing it.
This is #1 in a group of 5 patches for init.d/urandom. -- System Information: Debian Release: 5.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i586) Kernel: Linux 2.6.26.5 (PREEMPT) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash
>From dd1a2a7c4fbe58f60b46e739d5a7c78fc2dde03d Mon Sep 17 00:00:00 2001 From: John Denker <j...@av8n.com> Date: Sat, 11 Sep 2010 09:17:32 -0700 Subject: [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. --- 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