Debian Codegraph @

jitterentropy.service.in

raw
1 # Systemd configuration file
2 #
3 # The Jitterentropy RNGd does not depend on any other system
4 # services. Futhermore, we want to start it as early as possible
5 # in the boot cycle so that other services requiring
6 # random numbers (like SSHD, TLS-based services) benefit
7 # from a properly seeded /dev/?random
8
9 [Unit]
10 Description=Jitterentropy Gatherer Daemon
11 DefaultDependencies=no
12 After=local-fs.target
13 Before=sysinit.target
14
15 [Service]
16 CapabilityBoundingSet=CAP_SYS_ADMIN
17 DeviceAllow=/dev/null rw
18 DeviceAllow=/dev/random rw
19 DevicePolicy=strict
20 ExecStart=@PATH@/jitterentropy-rngd
21 IPAddressDeny=any
22 LimitMEMLOCK=2M
23 LockPersonality=yes
24 MemoryDenyWriteExecute=yes
25 MountFlags=private
26 NoNewPrivileges=yes
27 PrivateDevices=yes
28 PrivateMounts=yes
29 PrivateNetwork=yes
30 PrivateTmp=yes
31 PrivateUsers=no
32 ProtectControlGroups=yes
33 ProtectHome=yes
34 ProtectKernelModules=yes
35 ProtectKernelTunables=yes
36 ProtectSystem=strict
37 ReadOnlyPaths=-/
38 RemoveIPC=yes
39 RestrictAddressFamilies=
40 RestrictNamespaces=yes
41 RestrictRealtime=yes
42 SystemCallArchitectures=native
43 SystemCallFilter=@system-service
44 SystemCallFilter=~@chown @clock @cpu-emulation @debug @ipc @module @mount @obsolete @privileged @raw-io @reboot @resources @swap memfd_create mincore mlockall personality
45 UMask=0077
46
47 [Install]
48 WantedBy=basic.target
49 Alias=jitterentropy-rngd.service