Add switch to disable IPv6
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 18 Jan 2022 04:37:01 +0000 (13:37 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Mon, 24 Jan 2022 02:09:08 +0000 (11:09 +0900)
commit19b858fd95ade9a43ce50bb171314bb4dd732457
treef898408659551f58b554f76a57384d2fe9e2ab2c
parentb464d5a1b9730c3a076e5367015c2ea878e64f0c
Add switch to disable IPv6

Due to DualMode, smack deny occurs as ipv4 mapped address is used
for communication between daemon and apps using localhost if internet privilege doesnot exist.

In order to handle the ipv4 mapped loopback in smack, it is necessary to modify the kernel side,
but we cannot know when the patch will be applied.
Also, it is not possible to disable all IPv6 for just solving this issue.

So, set switch to disable ipv6 only when there is no internet privilege.
If there is internet privilege, all works normally in dual mode,
And if there is no internet privilege, ipv6 will be diabled so that local communication can be same as before.
NativeLauncher/CMakeLists.txt
NativeLauncher/inc/launcher_env.h
NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc
NativeLauncher/launcher/lib/core_runtime.cc
packaging/dotnet-launcher.spec