From 33676e754d309b54ade8dcc7fa7c76923cf9df53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/MDE=20Lab=28SR=29/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 15 Apr 2025 12:19:41 +0900 Subject: [PATCH] Apply smack to folders created in relation to the res_mount folder (#611) --- NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); } } -- 2.34.1