mxc
mxc copied to clipboard
[Bubblewrap] Missing deniedPaths beneath a read-only parent fail when mountinfo has a non-path root
Relevant area(s)
Linux
Brief description of your issue
- On ubuntu-24.04, any request with a missing
deniedPathsentry 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/mountinfoline whose root or mount point is not an absolute path.- Likely cause (not confirmed): valid entries with a non-path root, such as
nsfsmounts (net:[4026...]) created by Docker orip 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
- Use a host whose mountinfo includes an nsfs or other non-path-root entry, such as the GitHub
ubuntu-24.04runner. - 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).