Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Bubblewrap] Resolve DNS when the host uses a loopback stub resolver #1453
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
base: main
Are you sure you want to change the base?
[Bubblewrap] Resolve DNS when the host uses a loopback stub resolver #1453
Changes from all commits
26459b0126e38aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium (correctness) β a UDP-only admission check gives the wrong advice for TCP DNS.
Attribution:
introduced_by_changeβ the replacement retains the host'soptionsline, includinguse-vc, but this newly added diagnostic checks only UDP/53. glibc'sresolv.conf(5)specifies thatuse-vcforces TCP DNS: with only the suggested UDP rule, the warning is suppressed even though the resolver's TCP packets are blocked by a deny-default chain.Fix: Account for
use-vcwhen evaluating and explaining the required egress rule; check what slirp supports for TCP DNS rather than suggesting that UDP/53 always suffices.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Low (reliability) β the egress warning can describe an unapplied resolver pin.
Attribution:
introduced_by_changeβ this warning runs beforeProxyNetworkNamespace::startcallsstage_resolver. If staging fails, the user is told both to allow10.0.2.3:53and that the sandbox kept its original loopback resolver; adding that rule cannot fix the latter state.Fix: Warn about a blocked DNS forwarder only after the replacement was successfully staged and will be included in bwrap's arguments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.