Skip to content

fix(runtime): refuse non-Linux MicroVM :ro without host denial - #526

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-refuse-nonlinux-microvm-ro
Sep 18, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-refuse-nonlinux-microvm-ro

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Non-Linux stage_virtiofs_ro_share returns ConfigError instead of attaching a writable host share under guest-honor-only MS_RDONLY.
  • Windows unit tests updated: rw bind still works; :ro is refused.
  • Does not invent Windows/macOS native denial or close B3/B2.

Test plan

  • cargo test -p a3s-box-runtime --features vm test_build_instance_spec_windows
  • Linux CI when runners resume

Made with Cursor

Guest MS_RDONLY alone is not host write denial; fail closed on Windows/
macOS until a native virtio-fs RO share flag exists.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 3e53ab1 into main Sep 18, 2026
2 of 7 checks passed
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