summaryrefslogtreecommitdiffstats
path: root/core/modules/haveged/data
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-05 16:24:55 +0200
committerSimon Rettberg2018-10-05 16:24:55 +0200
commit74f660b4ba34822f05698e522ff0479ee1ed3aa0 (patch)
tree2c38bf4b02b6c29d5821863d28a9b39d80db572b /core/modules/haveged/data
parent[idleaction] Add xprintlocktime (diff)
downloadmltk-74f660b4ba34822f05698e522ff0479ee1ed3aa0.tar.gz
mltk-74f660b4ba34822f05698e522ff0479ee1ed3aa0.tar.xz
mltk-74f660b4ba34822f05698e522ff0479ee1ed3aa0.zip
[haveged] New module; used in stage31 to fill random pool
Diffstat (limited to 'core/modules/haveged/data')
l---------core/modules/haveged/data/etc/systemd/system/default.target.wants/haveged.service1
-rw-r--r--core/modules/haveged/data/etc/systemd/system/haveged.service24
2 files changed, 25 insertions, 0 deletions
diff --git a/core/modules/haveged/data/etc/systemd/system/default.target.wants/haveged.service b/core/modules/haveged/data/etc/systemd/system/default.target.wants/haveged.service
new file mode 120000
index 00000000..9d39da30
--- /dev/null
+++ b/core/modules/haveged/data/etc/systemd/system/default.target.wants/haveged.service
@@ -0,0 +1 @@
+../haveged.service \ No newline at end of file
diff --git a/core/modules/haveged/data/etc/systemd/system/haveged.service b/core/modules/haveged/data/etc/systemd/system/haveged.service
new file mode 100644
index 00000000..53cf36b8
--- /dev/null
+++ b/core/modules/haveged/data/etc/systemd/system/haveged.service
@@ -0,0 +1,24 @@
+[Unit]
+Description=Entropy daemon using the HAVEGE algorithm
+Documentation=man:haveged(8) http://www.issihosts.com/haveged/
+DefaultDependencies=no
+ConditionVirtualization=!container
+After=apparmor.service systemd-random-seed.service systemd-tmpfiles-setup.service
+Before=sysinit.target shutdown.target
+
+[Service]
+EnvironmentFile=-/etc/default/haveged
+ExecStart=/usr/sbin/haveged --Foreground --verbose=1 $DAEMON_ARGS
+SuccessExitStatus=143
+SecureBits=noroot-locked
+NoNewPrivileges=yes
+CapabilityBoundingSet=CAP_SYS_ADMIN
+PrivateTmp=yes
+PrivateDevices=yes
+PrivateNetwork=yes
+ProtectSystem=full
+ProtectHome=yes
+
+[Install]
+WantedBy=default.target
+