sysvinit: load random seed from dom0 provided data

QubesOS/qubes-issues#1311
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-10 02:33:44 +02:00
parent 7963fb91c7
commit 13fb6e2fc3
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,10 @@ start()
chgrp qubes /var/run/qubes
chmod 0775 /var/run/qubes
# Load random seed from dom0
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
qubesdb-rm /qubes-random-seed
# Location of files which contains list of protected files
PROTECTED_FILE_LIST='/etc/qubes/protected-files.d'

View File

@ -64,6 +64,11 @@ start()
# the service will start only after successful restore
systemctl start qubes-db.service
echo Back to life.
# Reload random seed
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
qubesdb-rm /qubes-random-seed
fi
start_meminfo_writer=$(/usr/bin/qubesdb-read /qubes-service/meminfo-writer 2>/dev/null)