mxc icon indicating copy to clipboard operation
mxc copied to clipboard

[Bubblewrap] Missing deniedPaths beneath a read-only parent fail when mountinfo has a non-path root

Open theelliotm opened this issue 1 week ago • 0 comments

Relevant area(s)

Linux

Brief description of your issue

  • On ubuntu-24.04, any request with a missing deniedPaths entry beneath a read-only parent fails before the sandbox starts. (job)
  • parse_mountinfo (src/mxc-sdk/src/backends/bubblewrap/common/missing_denials.rs) rejects any /proc/self/mountinfo line whose root or mount point is not an absolute path.
  • Likely cause (not confirmed): valid entries with a non-path root, such as nsfs mounts (net:[4026...]) created by Docker or ip netns.
  • This check was added in #1742. It has failed in every nightly since; ubuntu-26.04, rhel-10 and debian-13 pass.

Steps to reproduce

  1. Use a host whose mountinfo includes an nsfs or other non-path-root entry, such as the GitHub ubuntu-24.04 runner.
  2. Run tests/scripts/run_bwrap_denied_masking_test.sh.

Expected behavior

  • Unrelated mountinfo entries are skipped, and the missing denial is enforced, or rejected where the policy requires it.

Actual behavior

{"error":{"code":"backend_error","message":"mount information entry 28 contains a non-absolute path"}}
FAIL: missing denial enforcement or read-only-parent controls failed (sandbox 255, publisher 1).
FAIL: a missing deny beneath a nested read-only mount was not rejected (sandbox 255).

theelliotm avatar Nov 19 '26 21:11 theelliotm