Merge "Don't do private app-dir permissions/quota on public volumes." into rvc-dev am: 15070b1833
am: fcabee6875
am: d4ee2faafc
Change-Id: Ic6fa26579a517373decc61f6924177021608b6ee
This commit is contained in:
commit
7afd178d00
1 changed files with 6 additions and 0 deletions
|
@ -1012,6 +1012,12 @@ int VolumeManager::setupAppDir(const std::string& path, int32_t appUid, bool fix
|
|||
return OK;
|
||||
}
|
||||
|
||||
if (volume->getType() == VolumeBase::Type::kPublic) {
|
||||
// On public volumes, we don't need to setup permissions, as everything goes through
|
||||
// FUSE; just create the dirs and be done with it.
|
||||
return fs_mkdirs(lowerPath.c_str(), 0700);
|
||||
}
|
||||
|
||||
// Create the app paths we need from the root
|
||||
return PrepareAppDirFromRoot(lowerPath, volumeRoot, appUid, fixupExistingOnly);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue