You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Hi! I'm packaging unbound for Arch Linux.
I am currently trying to upgrade the package to 1.12.0. Unfortunately I am running into serious issues with the service right on start.
With my configuration file, compatible with 1.11.0 I am trying to start unbound.service, but it returns:
unbound[1610946:0] error: failed to list interfaces: getifaddrs: Address family not supported by protocol
unbound[1610946:0] fatal error: could not open ports
I see that f6a527c has changed the behavior of the *interface: settings in the configuration. Unfortunately, this doesn't seem to work out of the box with the systemd unit anymore (or because of another problem?).
Even if I provide interface names to the respective *interface: configuration settings, I get the above error message.
The text was updated successfully, but these errors were encountered:
Okay, after some investigation I have found the issue.
It seems that the systemd service now requires AF_NETLINK in the RestrictAddressFamilies setting for the aforementioned changes to work and the service not to fail right away.
I'll open a pull request for this.
dvzrv
added a commit
to dvzrv/unbound
that referenced
this issue
Nov 21, 2020
contrib/unbound{,_portable}.service.in:
With the changes introduced in f6a527c
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
```
FixesNLnetLabs#350
- Merge #351 from dvzrv: Add AF_NETLINK to set of allowed socket
address families.
- Fix#350: with the AF_NETLINK permission, to fix 1.12.0 error:
failed to list interfaces: getifaddrs: Address family not
supported by protocol.
Hi! I'm packaging unbound for Arch Linux.
I am currently trying to upgrade the package to 1.12.0. Unfortunately I am running into serious issues with the service right on start.
With my configuration file, compatible with 1.11.0 I am trying to start unbound.service, but it returns:
I see that f6a527c has changed the behavior of the
*interface:
settings in the configuration. Unfortunately, this doesn't seem to work out of the box with the systemd unit anymore (or because of another problem?).Even if I provide interface names to the respective
*interface:
configuration settings, I get the above error message.The text was updated successfully, but these errors were encountered: