qubes-random-seed: feed kernel rng with randomness from dom0

This commit is contained in:
HW42 2015-07-01 19:41:07 +02:00 committed by Marek Marczykowski-Górecki
parent 9664c97e55
commit 0ffa746678
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Qubes Random Seed
DefaultDependencies=no
RequiresMountsFor=/proc/xen/
After=qubes-db.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/qubes/init/qubes-random-seed.sh

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -o pipefail
qubesdb-read /qubes-random-seed | base64 -d > /dev/urandom
qubesdb-rm /qubes-random-seed