Repository navigation
Allow MediaProvider to use daemon FDs during FUSE passthrough - #130
Merged
chenxiaolong merged 1 commit intoSep 25, 2026
Merged
Conversation
Owner
|
Thanks for the PR!
Does this also happen with regular v2.5 (or the |
Contributor
Author
Yes it happens on master branch, also happens on https://github.com/Enginex0/UsbMassStorage |
chenxiaolong
added a commit
that referenced
this pull request
Sep 25, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Exporting
/storage/emulated/0/disk.imgsuccessfully configured the USB LUN, but the host showed an empty/unreadable disk. MSD received a valid 64,000,000-byte FUSE file descriptor; host access then triggered this SELinux denial:Fix
The policy already allows
msd_daemonto use MediaProvider descriptors. Add the reverse permission,allow mediaprovider_app msd_daemon fd use, whenmediaprovider_appexists. This permits the observed access by the mass-storage worker using MediaProvider credentials. It is consistent with Android's FUSE passthrough implementation, which overrides credentials for backing-file I/O.Test environment
Validation
file-storagedenials appeared during subsequent exports.CI
./gradlew --no-daemon build zipDebug -x assembleRelease).NO-SOURCE; CI did not execute device tests or the native authentication tests.CI ran on
ci/fuse-passthrough-fdatc04b327. Its source matchespr/fuse-passthrough-fdat7bd728f; only the two workflow push triggers differ. Release builds are excluded by the existing workflow.Validation scope
The live comparison used a local build with separate authentication changes; this PR contains only the seven-line policy change and applies independently to current upstream. The boot-time patcher was updated, but persistence has not yet been retested across a reboot. No namespace, image-path, or descriptor-passing changes are included.