- Security context should be updated even if shared/data is existed.
Change-Id: I3e18ff55fa72523063b7283fb611c8fe7ce0665f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
}
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;