Merge "Revert "Reduce AppFuse max read size."" into main am: 7ed876741c am: 8a5b1dd831

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2994273

Change-Id: Idb1d002514c185ccdef4d20521db05af28348c83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2024-03-21 15:26:41 +00:00 committed by Automerger Merge Worker
commit b7269677a0

View file

@ -50,15 +50,14 @@ static android::status_t GetMountPath(uid_t uid, const std::string& name, std::s
static android::status_t Mount(int device_fd, const std::string& path) {
const auto opts = StringPrintf(
"fd=%i,"
"rootmode=40000,"
"default_permissions,"
"allow_other,"
"max_read=65536,"
"user_id=0,group_id=0,"
"context=\"u:object_r:app_fuse_file:s0\","
"fscontext=u:object_r:app_fusefs:s0",
device_fd);
"fd=%i,"
"rootmode=40000,"
"default_permissions,"
"allow_other,"
"user_id=0,group_id=0,"
"context=\"u:object_r:app_fuse_file:s0\","
"fscontext=u:object_r:app_fusefs:s0",
device_fd);
const int result =
TEMP_FAILURE_RETRY(mount("/dev/fuse", path.c_str(), "fuse",