blob: 5ae2fba215b43f09f0370e0d7e19c336e075329a [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001[Unit]
2Description=Hardware RNG Entropy Gatherer Daemon
Brad Bishop08902b02019-08-20 09:16:51 -04003DefaultDependencies=no
Brad Bishop08902b02019-08-20 09:16:51 -04004Conflicts=shutdown.target
Patrick Williams92b42cb2022-09-03 06:53:57 -05005Before=sysinit.target shutdown.target
6ConditionVirtualization=!container
Brad Bishopd7bf8c12018-02-25 22:55:05 -05007
8[Service]
Brad Bishop15ae2502019-06-18 21:44:24 -04009EnvironmentFile=-@SYSCONFDIR@/default/rng-tools
10ExecStart=@SBINDIR@/rngd -f $EXTRA_ARGS
Andrew Geissler82c905d2020-04-13 13:39:40 -050011CapabilityBoundingSet=CAP_SYS_ADMIN
12IPAddressDeny=any
13LockPersonality=yes
14MemoryDenyWriteExecute=yes
15NoNewPrivileges=yes
16PrivateTmp=yes
17ProtectControlGroups=yes
18ProtectHome=yes
19ProtectHostname=yes
20ProtectKernelModules=yes
21ProtectKernelLogs=yes
22ProtectSystem=strict
23RestrictAddressFamilies=AF_UNIX
24RestrictNamespaces=yes
25RestrictRealtime=yes
26RestrictSUIDSGID=yes
27SystemCallArchitectures=native
28SystemCallErrorNumber=EPERM
29SystemCallFilter=@system-service
Brad Bishopd7bf8c12018-02-25 22:55:05 -050030
31[Install]
Andrew Geissler82c905d2020-04-13 13:39:40 -050032WantedBy=sysinit.target