-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added haveged-once.service to provide entropy once (intended for init…
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |