Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062148 accepted/tizen/7.0/unified/hotfix/20221116.105305 accepted/tizen/unified/20221017.104849 tizen_7.0_m2_release
authorj-h.choi <j-h.choi@samsung.com>
Mon, 17 Oct 2022 02:11:27 +0000 (11:11 +0900)
committer조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Mon, 17 Oct 2022 04:08:47 +0000 (13:08 +0900)
Change-Id: I6b85a62d45c2261353a24420d95dd3c641efb25d

NativeLauncher/tool/privilege_common.cc

index 5c5f991..04314bf 100644 (file)
@@ -47,9 +47,10 @@ void checkInternetPrivilegeAndDisableIPv6(const char* pkgId, const std::string&
        }
 
        if (!isInternetPrivilegeExisted) {
-               std::string filePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
-               std::ofstream output(filePath);
-               if (exist(filePath)) {
+               std::string ipv6FilePath = rootPath + "/bin/" + DISABLE_IPV6_FILE;
+               std::ofstream output(ipv6FilePath);
+               if (exist(ipv6FilePath)) {
+                       copySmackAndOwnership(rootPath + "/bin/", ipv6FilePath);
                        _INFO("File to disable IPv6 is created successfully");
                } else {
                        _SERR("Failed to create file to disable IPv6 [%s]", pkgId);