summaryrefslogtreecommitdiffstats
path: root/contrib/Fedora/haveged-once.service
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-10 15:32:30 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-10 15:32:30 +0100
commit887c3b877f16e5e1b834e008306afe6677458225 (patch)
treedf0289cd7c79553a1d81310876cf48083db44239 /contrib/Fedora/haveged-once.service
parentAdding upstream version 1.9.14. (diff)
downloadhaveged-upstream.tar.xz
haveged-upstream.zip
Adding upstream version 1.9.19.upstream/1.9.19upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'contrib/Fedora/haveged-once.service')
-rw-r--r--contrib/Fedora/haveged-once.service31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/Fedora/haveged-once.service b/contrib/Fedora/haveged-once.service
new file mode 100644
index 0000000..bfa84a5
--- /dev/null
+++ b/contrib/Fedora/haveged-once.service
@@ -0,0 +1,31 @@
+[Unit]
+Description=Entropy Daemon based on the HAVEGE algorithm
+Documentation=man:haveged(8) http://www.issihosts.com/haveged/
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --once --Foreground
+SuccessExitStatus=137 143
+
+SecureBits=noroot-locked
+CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_CHROOT
+# We can *not* set PrivateTmp=true as it can cause an ordering cycle.
+PrivateTmp=false
+PrivateDevices=true
+# We can *not* set PrivateNetwork=true to allow command mode (chroot when included in initramfs)
+#PrivateNetwork=true
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+RestrictNamespaces=true
+RestrictRealtime=true
+
+LockPersonality=true
+MemoryDenyWriteExecute=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallFilter=~@mount
+SystemCallErrorNumber=EPERM