Added smack permissions for the .tac_symlink folder in preload install accepted/tizen/unified/20200915.113754 submit/tizen/20200915.041858
authorj-h.choi <j-h.choi@samsung.com>
Fri, 11 Sep 2020 06:09:50 +0000 (15:09 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Sun, 13 Sep 2020 22:53:34 +0000 (07:53 +0900)
Change-Id: Idb91cea264c7b6802b6723eca2d686c12efc865d

NativeLauncher/installer-plugin/prefer_nuget_cache_plugin.cc

index 30c16a8..2e80c2c 100644 (file)
@@ -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('/'));