qubes-random-seed: feed kernel rng with randomness from dom0
This commit is contained in:
parent
9664c97e55
commit
0ffa746678
10
vm-systemd/qubes-random-seed.service
Normal file
10
vm-systemd/qubes-random-seed.service
Normal 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
|
7
vm-systemd/qubes-random-seed.sh
Executable file
7
vm-systemd/qubes-random-seed.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user