Apply smack to folders created in relation to the res_mount folder (#611) accepted/tizen/unified/20250415.112926 accepted/tizen/unified/x/20250417.041831
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Tue, 15 Apr 2025 03:19:41 +0000 (12:19 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 15 Apr 2025 03:19:41 +0000 (12:19 +0900)
NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc

index dc9750265a89b7f91e58b32735143e90566280e5..f20ae1def4528d1bb5232d766ee42b58ccc12af8 100644 (file)
@@ -96,9 +96,12 @@ extern "C" int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId)
                        }
 
                        for (auto &path : resMountPaths) {
-                               if (exist(path) || createDir(path)) {
+                               if (exist(path)) {
                                        continue;
                                }
+                               if (createDir(path)) {
+                                       copySmackAndOwnership(binPath, path);
+                               }
                                _INFO("Retry %d. Cannot create directory [%s]", i, path.c_str());
                        }
                }