diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-06 03:24:50 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-11-06 03:24:50 +0100 |
commit | 99a76fa75feff819f58dc923cfc0e6d815dd1829 (patch) | |
tree | 8c06d0b0779389f74ec9be327391f9043d98ada9 /debian | |
parent | b2311a695c96b45d1af616e7b68c49604e9a9450 (diff) |
Create random-seed with read access only to root.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/hurd.postinst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst index f6b0ead5..4828112c 100644 --- a/debian/hurd.postinst +++ b/debian/hurd.postinst @@ -70,8 +70,11 @@ if [ "$1" = configure ] && [ "$2" ]; then --slave /dev/urandom urandom /dev/urandom-hurd # Generate initial pool + UMASK=`umask` + umask 077 [ -f /var/spool/random-seed ] || dd < /dev/urandom > /var/spool/random-seed bs=1 count=600 # TODO: will need to run settrans -ga /dev/random at system stop to make # it save it back + umask $UMASK fi |