diff options
author | j-h.choi <j-h.choi@samsung.com> | 2022-10-17 11:11:27 +0900 |
---|---|---|
committer | 조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com> | 2022-10-17 13:08:47 +0900 |
commit | 2813108a0e5d7f6ce5029a328cb4dd11b8e4f6fb (patch) | |
tree | 1957d4ece8d64427c7fed03c5c1ca99235e8672f | |
parent | 61b391ee432a3e74f07c35aa69814d17eb093785 (diff) | |
download | launcher-2813108a0e5d7f6ce5029a328cb4dd11b8e4f6fb.tar.gz launcher-2813108a0e5d7f6ce5029a328cb4dd11b8e4f6fb.tar.bz2 launcher-2813108a0e5d7f6ce5029a328cb4dd11b8e4f6fb.zip |
Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is createdtizen_7.0_m2_releaseaccepted/tizen/unified/20221017.104849accepted/tizen/7.0/unified/hotfix/20221116.105305accepted/tizen/7.0/unified/20221110.062148tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfix
Change-Id: I6b85a62d45c2261353a24420d95dd3c641efb25d
-rw-r--r-- | NativeLauncher/tool/privilege_common.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/NativeLauncher/tool/privilege_common.cc b/NativeLauncher/tool/privilege_common.cc index 5c5f991..04314bf 100644 --- a/NativeLauncher/tool/privilege_common.cc +++ b/NativeLauncher/tool/privilege_common.cc @@ -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); |