2017-03-22 07:22:34 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Validating, recursive, and caching DNS resolver
|
|
|
|
Documentation=man:unbound(8)
|
2018-08-07 08:30:22 +00:00
|
|
|
After=network.target
|
|
|
|
Before=network-online.target nss-lookup.target
|
|
|
|
Wants=nss-lookup.target
|
2017-01-03 13:43:29 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2017-03-06 15:27:36 +00:00
|
|
|
|
2017-03-22 07:22:34 +00:00
|
|
|
[Service]
|
2017-05-18 07:08:55 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2017-05-17 15:04:05 +00:00
|
|
|
ExecStart=@UNBOUND_SBIN_DIR@/unbound
|
2017-03-22 07:22:34 +00:00
|
|
|
NotifyAccess=main
|
|
|
|
Type=notify
|
2018-08-07 08:30:22 +00:00
|
|
|
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE
|
2017-03-06 15:27:36 +00:00
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=true
|
|
|
|
PrivateTmp=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectSystem=strict
|
2017-05-17 15:04:05 +00:00
|
|
|
ReadWritePaths=@UNBOUND_SYSCONF_DIR@ @UNBOUND_LOCALSTATE_DIR@ /run @UNBOUND_RUN_DIR@
|
2018-08-07 08:30:22 +00:00
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
2017-03-06 15:27:36 +00:00
|
|
|
RestrictRealtime=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources
|
|
|
|
|