From: j-h.choi Date: Fri, 11 Sep 2020 06:09:50 +0000 (+0900) Subject: Added smack permissions for the .tac_symlink folder in preload install X-Git-Tag: accepted/tizen/unified/20200915.113754^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a78640db5e609dc7981ed66fc66852e74f7af203;p=platform%2Fcore%2Fdotnet%2Flauncher.git Added smack permissions for the .tac_symlink folder in preload install Change-Id: Idb91cea264c7b6802b6723eca2d686c12efc865d --- diff --git a/NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc b/NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc index 30c16a8..2e80c2c 100644 --- a/NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc +++ b/NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc @@ -259,6 +259,7 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app _ERR("Cannot create directory: %s", tac_dir.c_str()); return 0; } + copySmackAndOwnership(binPath.c_str(), tac_dir.c_str()); for (auto& np : tacDB) { std::string tac_name = np.substr(0, np.find('/')); @@ -505,6 +506,7 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_UPGRADE(const char *pkgId, const char *app _ERR("Cannot create directory: %s", tac_dir.c_str()); return 0; } + copySmackAndOwnership(binPath.c_str(), tac_dir.c_str()); for (auto& np : tacDB) { std::string tac_name = np.substr(0, np.find('/'));