Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AF_NETLINK to set of allowed socket address families #351

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

dvzrv
Copy link
Contributor

@dvzrv dvzrv commented 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

Fixes #350

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
```

Fixes NLnetLabs#350
@wcawijngaards wcawijngaards merged commit dbd5ea4 into NLnetLabs:master Nov 23, 2020
wcawijngaards added a commit that referenced this pull request Nov 23, 2020
- 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.
@wcawijngaards
Copy link
Member

Thanks for the fix, moved it into the code base!

pmeiyu pushed a commit to pmeiyu/nixpkgs that referenced this pull request Dec 8, 2020
Unbound throws the following error:

--8<---------------cut here---------------start------------->8---
error: failed to list interfaces: getifaddrs: Address family not supported by protocol
fatal error: could not open ports
--8<---------------cut here---------------end--------------->8---

The solution is pulled from upstream:
NLnetLabs/unbound#351
WilliButz pushed a commit to mayflower/nixpkgs that referenced this pull request Apr 29, 2021
Unbound throws the following error:

--8<---------------cut here---------------start------------->8---
error: failed to list interfaces: getifaddrs: Address family not supported by protocol
fatal error: could not open ports
--8<---------------cut here---------------end--------------->8---

The solution is pulled from upstream:
NLnetLabs/unbound#351

(cherry picked from commit 3cd1a67)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.12.0 error: failed to list interfaces: getifaddrs: Address family not supported by protocol
2 participants