From: 최종헌/MDE Lab(SR)/삼성전자 Date: Tue, 15 Apr 2025 03:19:41 +0000 (+0900) Subject: Apply smack to folders created in relation to the res_mount folder (#611) X-Git-Tag: accepted/tizen/unified/20250415.112926^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33676e754d309b54ade8dcc7fa7c76923cf9df53;p=platform%2Fcore%2Fdotnet%2Flauncher.git Apply smack to folders created in relation to the res_mount folder (#611) --- diff --git a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc index dc97502..f20ae1d 100644 --- a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc +++ b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc @@ -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()); } }