projects
/
platform
/
core
/
dotnet
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created
[platform/core/dotnet/launcher.git]
/
NativeLauncher
/
tool
/
privilege_common.cc
diff --git
a/NativeLauncher/tool/privilege_common.cc
b/NativeLauncher/tool/privilege_common.cc
index
5c5f991
..
04314bf
100644
(file)
--- 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) {
}
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);
_INFO("File to disable IPv6 is created successfully");
} else {
_SERR("Failed to create file to disable IPv6 [%s]", pkgId);