Remove checking existance of shared/data directory 96/208196/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 15 Nov 2017 09:07:11 +0000 (18:07 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 19 Jun 2019 11:56:49 +0000 (11:56 +0000)
- Security context should be updated even if shared/data is existed.

Change-Id: I3e18ff55fa72523063b7283fb611c8fe7ce0665f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 3ac20b1d56907bf015afbad1e5f43fc34feda250)

src/common/step/filesystem/step_update_per_user_storage_directories.cc

index 850fba3..72935c6 100644 (file)
@@ -47,11 +47,6 @@ common_installer::Step::Status RemoveSharedDir(const std::string& pkgid) {
 }
 
 common_installer::Step::Status CreateSharedDir(const std::string& pkgid) {
-  bf::path shareddir_path = bf::path(tzplatform_getenv(TZ_SYS_ETC)) /
-      bf::path(kSkelAppDir) / pkgid / kSharedDataDir;
-  if (bf::exists(shareddir_path))
-    return common_installer::Step::Status::OK;
-
   if (!common_installer::UpdateSkelDirectories(pkgid, false)) {
     LOG(ERROR) << "Failed to remove shared data directory";
     return common_installer::Step::Status::APP_DIR_ERROR;