mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5089] dnsmasq: libvirtd cannot start bridge network: PATH environment variable not set #2875
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#2875
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 @itoffshore on GitHub (Apr 3, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5089
Description
The default libvirt bridge network fails to start with:
Steps to Reproduce
virsh # net-start defaultLC_ALL=C firejail PROGRAMExpected behavior
libvirtd.servicestart successfullyActual behavior
libvirtd.servicefails to startBehavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin a terminal?Additional context
this problem appeared recently with
libvirt 1.8.1 / 1.8.2(it did not exist in1.8.0)owner of the
pidnow:Environment
firejail --version).Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@smitsohu commented on GitHub (Apr 10, 2022):
Possibly because libvirt_leaseshelper wants to write to
/var/lib/libvirt/dnsmasq. This fails because this directory is blacklisted, and if it wasn't blacklisted, it would be still read-only.Can you try:
If that works, try adding:
@smitsohu commented on GitHub (Apr 10, 2022):
If the problem is related to the pid file, it might be necessary to allow more capabilities.
caps.keep chown,dac_override,net_admin,net_bind_service,net_raw,setgid,setuid@itoffshore commented on GitHub (Apr 10, 2022):
Both of these fixes work (tested separately) - many thanks:
@smitsohu commented on GitHub (Apr 10, 2022):
Great!