Repository navigation
fix(network): stop TSI auto-publishing unpublished guest listeners (#371) - #377
Merged
Merged
Conversation
) Always pass an explicit krun_set_port_map allowlist from the shim (including empty when -p is absent) and pin vendored libkrun so try_listen refuses unmapped guest TCP/UDP binds instead of leaking LISTEN on 0.0.0.0. Does not flip B2 or invent Live digests. Co-authored-by: Cursor <[email protected]>
Repackage vendor/libkrun-source.tar and update build.rs / SOURCE-PROVENANCE.md digests for submodule a1078ed (#371). Co-authored-by: Cursor <[email protected]>
Author
|
Follow-up: refreshed \�endor/libkrun-source.tar\ + digests after the submodule pin so WHPX \Verify bundled libkrun source archive\ passes. |
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
-pno longer auto-publishes guest listeners onto host0.0.0.0([linux][P1][security] network: TSI exposes unpublished guest listeners on host 0.0.0.0 #371).krun_set_port_mapwith an explicit allowlist (including empty); bridge/passt still owns publish when virtio-net is attached.try_listenallowlist: unmapped guest TCP/UDP ports returnEADDRNOTAVAILinstead of binding the guest address on the host (fix(tsi): refuse host bind for unmapped guest listen ports libkrun#11 equivalent on the current Box pin lineage).--network none.Test plan
should_configure_tsi_port_mapempty / explicit / bridge casesnc -lwithout-p→ noss -ltnplibkrun LISTEN on that port-p host:gueststill reaches the guest--network nonestill has zero host listenersMade with Cursor