Debian Codegraph @

contrib/Fedora/haveged-initramfs.service

raw
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 ConditionKernelVersion=<5.6
6 After=systemd-tmpfiles-setup-dev.service
7 Before=sysinit.target shutdown.target systemd-journald.service
8
9 [Service]
10 ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --Foreground -v 64
11 Restart=always
12 SuccessExitStatus=137 143
13
14 SecureBits=noroot-locked
15 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_CHROOT
16 # We can *not* set PrivateTmp=true as it can cause an ordering cycle.
17 PrivateTmp=false
18 PrivateDevices=true
19 # We can *not* set PrivateNetwork=true to allow command mode
20 # (chroot when included in initramfs via switch-root mechanism).
21 ProtectSystem=full
22 ProtectHome=true
23 ProtectHostname=true
24 ProtectKernelLogs=true
25 ProtectKernelModules=true
26 RestrictNamespaces=true
27 RestrictRealtime=true
28
29 LockPersonality=true
30 MemoryDenyWriteExecute=true
31 SystemCallArchitectures=native
32 SystemCallFilter=@system-service
33 SystemCallFilter=~@mount
34 SystemCallErrorNumber=EPERM
35
36 [Install]
37 WantedBy=sysinit.target