Repository navigation
fix(tsi): return EPERM for unpublished listen so guests keep INET sockets - #12
Merged
Merged
Conversation
…kets krun-guest tsi_listen only falls back to native listen on -EPERM. EADDRNOTAVAIL made unpublished listen() fail, which broke MicroVM port-forward relays after an empty krun_set_port_map allowlist (A3S-Lab/Box#370). Host isolation is unchanged. Co-authored-by: Cursor <[email protected]>
Merged
5 tasks
Author
|
Linux/macOS CI on this PR fails in setup with |
GitHub no longer resolves Homebrew/actions@master. Composite actions still resolve every uses: entry before step ifs, so the macOS-only Homebrew step broke Linux unit and integration jobs before apt install. Co-authored-by: Cursor <[email protected]>
Author
|
Pushed a CI-only follow-up: pin |
Allow brew tap to fail closed on untrusted formula evaluation, then brew trust before install. Format the EPERM listen-map changes for cargo fmt --check. Co-authored-by: Cursor <[email protected]>
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
try_listennow returns-EPERMinstead of-EADDRNOTAVAIL.tsi_listenonly keeps the native INET socket on-EPERM; any other errno fails guestlisten().Nonestill auto-publishes. Unix sockets are unchanged.Context
Follow-up to #11 / A3S-Lab/Box libkrun#371. Empty
krun_set_port_mapallowlists (A3S-Lab/Box scale endpoints, Box#370) need an in-guest listener so the vsock port-forward relay canconnect(127.0.0.1, guest_port).Box vendors this same patch on the existing submodule lineage (
daec6e8498461c767f64a10d565c8a64adffcd7c) because that pin is not a fast-forward of thismain.Test plan
EPERM, notEADDRNOTAVAILNonestill auto-publisheslisten(8080)succeeds in-guest; host has no LISTEN on 8080Made with Cursor