From a78640db5e609dc7981ed66fc66852e74f7af203 Mon Sep 17 00:00:00 2001 From: "j-h.choi" Date: Fri, 11 Sep 2020 15:09:50 +0900 Subject: [PATCH] Added smack permissions for the .tac_symlink folder in preload install Change-Id: Idb91cea264c7b6802b6723eca2d686c12efc865d --- NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc | 2 ++ 1 file changed, 2 insertions(+) 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('/')); -- 2.7.4