diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 358d2eb..3decc0c 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -401,9 +401,6 @@ int VolumeManager::mountPkgSpecificDir(const std::string& mntSourceRoot, int VolumeManager::mountPkgSpecificDirsForRunningProcs( userid_t userId, const std::vector& packageNames, const std::vector& visibleVolLabels, int remountMode) { - // TODO: New processes could be started while traversing over the existing - // processes which would end up not having the necessary bind mounts. This - // issue needs to be fixed, may be by doing multiple passes here? std::unique_ptr dirp(opendir("/proc"), closedir); if (!dirp) { PLOG(ERROR) << "Failed to opendir /proc"; @@ -664,8 +661,6 @@ int VolumeManager::handleMountModeInstaller(int mountMode, int obbMountDirFd, int VolumeManager::prepareSandboxes(userid_t userId, const std::vector& packageNames, const std::vector& visibleVolLabels) { - prepareSandboxTargets(userId, visibleVolLabels); - if (visibleVolLabels.empty()) { return 0; } @@ -685,6 +680,11 @@ int VolumeManager::prepareSandboxes(userid_t userId, const std::vector