diff options
author | Simon Rettberg | 2018-10-05 16:24:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-10-05 16:24:55 +0200 |
commit | 74f660b4ba34822f05698e522ff0479ee1ed3aa0 (patch) | |
tree | 2c38bf4b02b6c29d5821863d28a9b39d80db572b /core/modules/haveged | |
parent | [idleaction] Add xprintlocktime (diff) | |
download | mltk-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')
5 files changed, 52 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 + diff --git a/core/modules/haveged/module.build b/core/modules/haveged/module.build new file mode 100644 index 00000000..5fa3a36f --- /dev/null +++ b/core/modules/haveged/module.build @@ -0,0 +1,14 @@ +#!/bin/bash +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + list_packet_files > "$COPYLIST" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" +} + +post_copy() { + : +} diff --git a/core/modules/haveged/module.conf b/core/modules/haveged/module.conf new file mode 100644 index 00000000..d40d63fa --- /dev/null +++ b/core/modules/haveged/module.conf @@ -0,0 +1,6 @@ +#!/bin/bash +REQUIRED_BINARIES=" + haveged +" +REQUIRED_LIBRARIES="" +REQUIRED_DIRECTORIES="" diff --git a/core/modules/haveged/module.conf.ubuntu b/core/modules/haveged/module.conf.ubuntu new file mode 100644 index 00000000..0842d080 --- /dev/null +++ b/core/modules/haveged/module.conf.ubuntu @@ -0,0 +1,7 @@ +#!/bin/bash +REQUIRED_CONTENT_PACKAGES=" + haveged +" +REQUIRED_INSTALLED_PACKAGES=" + haveged +" |