| 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 |
After=apparmor.service systemd-tmpfiles-setup.service systemd-tmpfiles-setup-dev.service |
| 6 |
Before=sysinit.target shutdown.target |
| 7 |
Conflicts=shutdown.target |
| 8 |
ConditionVirtualization=!container |
| 9 |
|
| 10 |
[Service] |
| 11 |
EnvironmentFile=-/etc/default/haveged |
| 12 |
ExecStart=/usr/sbin/haveged --Foreground --verbose=1 $DAEMON_ARGS |
| 13 |
Restart=always |
| 14 |
SuccessExitStatus=137 143 |
| 15 |
SecureBits=noroot-locked |
| 16 |
CapabilityBoundingSet=CAP_SYS_ADMIN |
| 17 |
PrivateTmp=true |
| 18 |
PrivateDevices=true |
| 19 |
PrivateNetwork=true |
| 20 |
ProtectSystem=full |
| 21 |
ProtectHome=true |
| 22 |
ProtectHostname=true |
| 23 |
ProtectKernelLogs=true |
| 24 |
ProtectKernelModules=true |
| 25 |
RestrictNamespaces=true |
| 26 |
RestrictRealtime=true |
| 27 |
|
| 28 |
LockPersonality=true |
| 29 |
MemoryDenyWriteExecute=true |
| 30 |
SystemCallArchitectures=native |
| 31 |
SystemCallFilter=@system-service |
| 32 |
SystemCallFilter=~@mount |
| 33 |
SystemCallErrorNumber=EPERM |
| 34 |
|
| 35 |
[Install] |
| 36 |
WantedBy=sysinit.target |