2025-02-05 13:10:21 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Entropy Daemon based on the HAVEGE algorithm
|
|
|
|
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
|
|
|
|
DefaultDependencies=no
|
|
|
|
|
|
|
|
[Service]
|
2025-02-05 13:12:32 +01:00
|
|
|
Type=oneshot
|
|
|
|
ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --once --Foreground
|
2025-02-05 13:10:21 +01:00
|
|
|
SuccessExitStatus=137 143
|
|
|
|
|
|
|
|
SecureBits=noroot-locked
|
2025-02-05 13:12:32 +01:00
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_CHROOT
|
2025-02-05 13:10:21 +01:00
|
|
|
# We can *not* set PrivateTmp=true as it can cause an ordering cycle.
|
|
|
|
PrivateTmp=false
|
|
|
|
PrivateDevices=true
|
2025-02-05 13:12:32 +01:00
|
|
|
# We can *not* set PrivateNetwork=true to allow command mode (chroot when included in initramfs)
|
|
|
|
#PrivateNetwork=true
|
2025-02-05 13:10:21 +01:00
|
|
|
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
|