]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Add AF_NETLINK to set of allowed socket address families 351/head
authorDavid Runge <dave@sleepmap.de>
Sat, 21 Nov 2020 13:10:39 +0000 (14:10 +0100)
committerDavid Runge <dave@sleepmap.de>
Sat, 21 Nov 2020 13:10:39 +0000 (14:10 +0100)
contrib/unbound{,_portable}.service.in:
With the changes introduced in f6a527c25ad2e60e2dc129fff3605e6ec48c30f2
it is now necessary to also allow access to the AF_NETLINK socket
address family to be able to get information from interfaces.

Without the AF_NETLINK address family the systemd service errors with:

```
error: failed to list interfaces: getifaddrs: Address family not
supported by protocol
```

Fixes #350

contrib/unbound.service.in
contrib/unbound_portable.service.in

index c95ab94b343a92d301ba96c737aa9a55daa30f74..a4596978dbe2d2f7cfa91fd75a71fafb1a16a429 100644 (file)
@@ -66,7 +66,7 @@ ProtectSystem=strict
 RuntimeDirectory=unbound
 ConfigurationDirectory=unbound
 StateDirectory=unbound
-RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
+RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
 RestrictRealtime=true
 SystemCallArchitectures=native
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources
index 998b66dec999f93284e09f07b9ea6ef605d31baa..e763763f02e1acb7af892e3c25e9457e6188dfbe 100644 (file)
@@ -38,7 +38,7 @@ ProtectSystem=strict
 RuntimeDirectory=unbound
 ConfigurationDirectory=unbound
 StateDirectory=unbound
-RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
+RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
 RestrictRealtime=true
 SystemCallArchitectures=native
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module mount @obsolete @resources