mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4714] dhclient-script needs ip, which is disabled in disable-common.inc #2762
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#2762
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 @kris7t on GitHub (Nov 25, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4714
Description
In
483fe0622b (diff-ceabc68b897d509c864b3d4c515111eeb4f7677549ff9a815dec3c8ebfdf2839R521), theipprogram was disabled by default indisble-common.inc. This prevents/usr/bin/dhclient-scriptfrom running properly. Instead, it outputs error messages such asSteps to Reproduce
Run
firejailwith any profile than includesdisable-common.incwith dhcp client, such asReplace
br0in the above with a bridge interface that has access to a DHCP server.Expected behavior
dhclientshould finish successfully and acquire an IP address for the sandbox.Actual behavior
dhclientfails to run, which leads to network connectivity problems in the sandbox.Behavior without a profile
Running with no profile or with a profile that does not include
disable-common.incallows firejail to proceed with no error.Additional context
It seems we are applying the file denylist even for
dhclient, which otherwise runs as root. One solution would be to only apply the denylist after the container has acquired an IP address, but that might loosen the sandbox a bit too much. A more elegant way (but I can't easily come up with a plan how to implement it) would be to specifically allowdhclient,dhclient-script,ip(an whatever other utilitiesdhclient-scriptmight need) transiently.As a workaround, I added
to
globals.local, but this is a inferior solution (sinceipkeeps being allowed even after we have acquired an IP address).Environment
483fe0622bChecklist
/usr/bin/vlc) "fixes" it).Log
Output of
firejail --profile=/etc/firejail/chromium.profile --net=br0 --ip=dhcp /usr/bin/chromium@netblue30 commented on GitHub (Nov 30, 2021):
OOPS! Fixed, thanks!