Skip to content

Commit

Permalink
Added haveged-once.service to provide entropy once (intended for init…
Browse files Browse the repository at this point in the history
…ramfs)
  • Loading branch information
Jirka Hladky committed Dec 31, 2021
1 parent fc4a994 commit 1f6a41a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions contrib/Fedora/haveged-once.service
Original file line number Diff line number Diff line change
@@ -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=/usr/bin/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

0 comments on commit 1f6a41a

Please sign in to comment.