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

BIND server is broken with seccomp enabled #25645

Closed
peti opened this issue May 9, 2017 · 2 comments
Closed

BIND server is broken with seccomp enabled #25645

peti opened this issue May 9, 2017 · 2 comments

Comments

@peti
Copy link
Member

peti commented May 9, 2017

I recently tried to update a kvm-virtualized server I run with NixOS to release-17.03. The result was that the named server is completely broken. It freezes at startup, regardless of what configuration I run it with, and then it cannot be terminated except with SIGKILL. The systemd journal and dmesg contain no helpful output. I used strace on the process and got these last lines:

prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)  = 0
seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument)
seccomp(SECCOMP_SET_MODE_FILTER, 0, {len=35, filter=0x87dfa0}) = 0
getpid()                                = ?

I re-compiled BIND with seccomp disabled, and then everything worked fine, so I'm pretty sure that's the cause of this problem.

That issue feels rather serious.

Cc: @fpletz
Possibly related: #23431

@fpletz fpletz added this to the 17.03 milestone May 9, 2017
@fpletz fpletz self-assigned this May 9, 2017
fpletz added a commit to mayflower/nixpkgs that referenced this issue May 9, 2017
@fpletz
Copy link
Member

fpletz commented May 9, 2017

Thanks! I wasn't hitting this because I was using bind in another environment.

@fpletz fpletz closed this as completed in eb79649 May 9, 2017
fpletz added a commit that referenced this issue May 9, 2017
Fixes #25645 & #23431.

(cherry picked from commit eb79649)
@dudebout
Copy link
Contributor

dudebout commented Jun 9, 2018

@fpletz just a heads up, BIND is dropping seccomp support: https://gitlab.isc.org/isc-projects/bind9/issues/93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants