mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1731] unbound: error with DNSSEC validation enabled #1172
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @curiosity-seeker on GitHub (Jan 14, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1731
I've firejailed unbound in Fedora 27.
lib/systemd/system/unbound.servicelooks like this:I've created the following
/etc/systemd/system/unbound.service.d/override.conffile:This works very well.
systemctl status unbounddoesn't show any errors.However, the situation changes if I enable DNSSEC validation in
unbound.confby uncommenting the line:auto-trust-anchor-file: "/var/lib/unbound/root.key"If I remove above
unbound.service.dfolder and, hence, execute unbound unsandboxed (with systemctl daemon-reload and systemctl restart unbound) everything works as expected without any errors.If I start unbound sandboxed I get the following output from systemctl status unbound:
The respective output in journalctl is:
The funny thing is that I get the same error if I comment every line in unbound.profile (i.e. effectively an empty profile) or add the --noprofile option.
@smitsohu commented on GitHub (Jan 14, 2018):
Try it with
--writable-var. /var is always read-only, unless you tell firejail otherwise.@smitsohu commented on GitHub (Jan 15, 2018):
Actually it should be possible to adjust unbound.conf such that all the setup works take place in a different location than /var. On Debian (Jessie) for example the default paths are all below /etc/unbound.
This way
writable-varis not necessary.@curiosity-seeker commented on GitHub (Jan 15, 2018):
You're absolutely right, of course. It's really embarrassing - I obviously had a complete mental blackout :-(
I chose the combination
--writable-var --whitelist=/var/lib/unbound@smitsohu commented on GitHub (Jan 15, 2018):
If you don't mind I'd like to upstream this solution.
@curiosity-seeker commented on GitHub (Jan 15, 2018):
Yes, of course! However, I'm not sure if all distros save root.key under /var/lib/unbound ....
@curiosity-seeker commented on GitHub (Feb 11, 2018):
Weird! I've noticed that I'm getting now an error when executing
systemctl status unbound:However, after adding the --trace option I'm getting this:
No error any more - how come?
@smitsohu commented on GitHub (Feb 26, 2018):
Not really answering your question, but I think a capability is missing here.... the
ip-transparentoption of unbound is broken without cap_net_admin, so the the profile should read:caps.keep net_admin,net_bind_service,setgid,setuid,sys_chroot,sys_resource@curiosity-seeker commented on GitHub (Mar 1, 2018):
@smitsohu : Thanks, I added that to
unbound.local. However, I'm still getting the error:error: cannot open pidfile /var/lib/unbound/unbound.pid: Permission deniedI'm getting this error even after commenting everything in the profile. This does not happen if unbound is not firejailed. So something is still missing.
@curiosity-seeker commented on GitHub (Mar 14, 2018):
Thanks, @smitsohu . Unfortunately, I'm still getting that error even after above fix.
@rusty-snake commented on GitHub (Jun 26, 2019):
@curiosity-seeker still an issue?
@curiosity-seeker commented on GitHub (Jun 26, 2019):
@rusty-snake : I don't know as I'm no longer using unbound. Sorry!
@rusty-snake commented on GitHub (Jun 26, 2019):
ok, then I go ahead and close for now, if anyone still has this issue, fell free to re-open