blob: 0559b97991546405e4e63f7e9b6e299e72bbf805 [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
4After=systemd-udev-settle.service
5Before=sysinit.target shutdown.target
6Conflicts=shutdown.target
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