Skip to content

fix(runtime): host-enforce Linux MicroVM virtiofs :ro - #507

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
feat/b3-microvm-ro-virtiofs-host-alias
Sep 18, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
feat/b3-microvm-ro-virtiofs-host-alias

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Linux MicroVM :ro volumes stage a private host bind remounted MS_RDONLY before virtio-fs attach (guest MS_RDONLY alone is not host write denial).
  • Cleanup detaches .filemounts/ro-aliases on execution removal.
  • Non-Linux remains guest-honor-only until native share denial exists. Does not close ROADMAP B3/B2 or flip b2_process_session_recovery_closed.

Test plan

  • CI Format / Clippy / Test (Linux privileged unit test skips without CAP_SYS_ADMIN)
  • Manual: -v /host:/guest:ro MicroVM cannot write through the virtio-fs share on Linux

Made with Cursor

ZhiXiao-Lin and others added 2 commits September 18, 2026 07:50
Stage a private MS_RDONLY bind alias before virtio-fs attach so :ro is
not guest-honor-only on Linux. Non-Linux remains guest-honor-only.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit be35e25 into main Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant