blob: 568686e80e64fe90bb7f75f01c4c2c79a7c08248 [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
Andrew Geissler5199d832021-09-24 16:47:35 -05006Wants=systemd-udev-settle.service
Brad Bishop08902b02019-08-20 09:16:51 -04007Conflicts=shutdown.target
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008
9[Service]
Brad Bishop15ae2502019-06-18 21:44:24 -040010EnvironmentFile=-@SYSCONFDIR@/default/rng-tools
11ExecStart=@SBINDIR@/rngd -f $EXTRA_ARGS
Andrew Geissler82c905d2020-04-13 13:39:40 -050012CapabilityBoundingSet=CAP_SYS_ADMIN
13IPAddressDeny=any
14LockPersonality=yes
15MemoryDenyWriteExecute=yes
16NoNewPrivileges=yes
17PrivateTmp=yes
18ProtectControlGroups=yes
19ProtectHome=yes
20ProtectHostname=yes
21ProtectKernelModules=yes
22ProtectKernelLogs=yes
23ProtectSystem=strict
24RestrictAddressFamilies=AF_UNIX
25RestrictNamespaces=yes
26RestrictRealtime=yes
27RestrictSUIDSGID=yes
28SystemCallArchitectures=native
29SystemCallErrorNumber=EPERM
30SystemCallFilter=@system-service
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031
32[Install]
Andrew Geissler82c905d2020-04-13 13:39:40 -050033WantedBy=sysinit.target