From c6da9bfac369123fd253f08769816515395c782d Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Wed, 15 Oct 1997 14:20:27 +0000 Subject: Make random seed file mode 600. --- rc.d/init.d/random | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d') diff --git a/rc.d/init.d/random b/rc.d/init.d/random index 995061b6..e394feb4 100755 --- a/rc.d/init.d/random +++ b/rc.d/init.d/random @@ -19,6 +19,7 @@ case "$1" in if [ -f $random_seed ]; then cat $random_seed >/dev/urandom fi + chmod 600 $random_seed dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null touch /var/lock/subsys/random @@ -27,6 +28,8 @@ case "$1" in # Carry a random seed from shut-down to start-up # Save 512 bytes, which is the size of the entropy pool echo "Saving random seed..." + touch $random_seed + chmod 600 $random_seed dd if=/dev/urandom of=$random_seed count=1 bs=512 2>/dev/null rm -f /var/lock/subsys/random -- cgit v1.2.1