| 1 |
[Unit] |
| 2 |
Description=Entropy Daemon based on the HAVEGE algorithm |
| 3 |
Documentation=man:haveged(8) http://www.issihosts.com/haveged/ |
| 4 |
DefaultDependencies=no |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=oneshot |
| 8 |
ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --once --Foreground --no-command |
| 9 |
SuccessExitStatus=137 143 |
| 10 |
|
| 11 |
SecureBits=noroot-locked |
| 12 |
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_CHROOT |
| 13 |
# We can *not* set PrivateTmp=true as it can cause an ordering cycle. |
| 14 |
PrivateTmp=false |
| 15 |
PrivateDevices=true |
| 16 |
PrivateNetwork=true |
| 17 |
ProtectSystem=full |
| 18 |
ProtectHome=true |
| 19 |
ProtectHostname=true |
| 20 |
ProtectKernelLogs=true |
| 21 |
ProtectKernelModules=true |
| 22 |
RestrictNamespaces=true |
| 23 |
RestrictRealtime=true |
| 24 |
|
| 25 |
LockPersonality=true |
| 26 |
MemoryDenyWriteExecute=true |
| 27 |
SystemCallArchitectures=native |
| 28 |
SystemCallFilter=@system-service |
| 29 |
SystemCallFilter=~@mount |
| 30 |
SystemCallErrorNumber=EPERM |