Skip to content

fix(runtime): support fuse mounts with minimal permissions - #1149

Draft
G4614 wants to merge 1 commit into
boxlite-ai:mainfrom
G4614:fuse-sandbox-mount-support
Draft

fix(runtime): support fuse mounts with minimal permissions#1149
G4614 wants to merge 1 commit into
boxlite-ai:mainfrom
G4614:fuse-sandbox-mount-support

Conversation

@G4614

@G4614 G4614 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Split out of #1056. Adds an opt-in --fuse flag (advanced.fuse) that grants a box the minimum runtime permissions FUSE filesystems need: CAP_SYS_ADMIN and a /dev/fuse device node, in both the sandbox layer (bwrap/landlock) and the guest container spec. Advertised over REST via CreateBoxAdvancedOptions.fuse; older servers that predate the capability are rejected rather than silently ignoring the request.

Unrelated to volume mounts — split out because it grants a new sandbox capability (CAP_SYS_ADMIN + device access) and deserves independent review from the storage API work in #1056.

Test plan:

  • BOXLITE_DEPS_STUB=1 cargo test -p boxlite --lib --features rest fuse — 3 tests pass
  • BOXLITE_DEPS_STUB=1 cargo test -p boxlite-cli fuse — 2 tests pass
  • BOXLITE_DEPS_STUB=1 cargo test -p boxlite-cli --bin boxlite cli::tests:: — 64/64 pass, no regressions

Add an opt-in --fuse flag (advanced.fuse) that grants a box the
minimum runtime permissions FUSE filesystems need: CAP_SYS_ADMIN
and a /dev/fuse device node, in both the sandbox layer (bwrap/
landlock) and the guest container spec. Advertised over REST via
CreateBoxAdvancedOptions.fuse; older servers that predate the
capability are rejected rather than silently ignoring the request.
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 554f9a4c-a3f4-4a13-bcd5-79fc9b266235

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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