[VD] Build fix - skip wrt-loader launch for LFD product 71/222271/5
authorYONGMAN SON <yman.son@samsung.com>
Mon, 13 Jan 2020 06:47:18 +0000 (15:47 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Mon, 13 Jan 2020 09:41:48 +0000 (09:41 +0000)
Eventually, This patch won't make the wrt.loader service file
for LFD product.

In LFD, it has only one webapp which is launched early time after boot.
Thus, wrt-loader is not effective to LFD product.

In addition, with WRTjs, zygote process is changed to /usr/bin/wrt
from efl_webprocess. 'wrt' has more capability than efl_webprocess and
some of its capability (i.e. cap_setpcap), they cannot be working with
zone container of security framework.
Thus, zygote process is going to die with wrt-loader launching.

If webapp is launched directly without wrt-loader, the webapp process is
started with app privilege, which means that process has changed smack
label, process group as app permission its manifest describes.

With these reason, this patch will not make wrt.loader file for LFD
product.

Change-Id: I6a1db9b65a4e20ac70d072f93f581d50085ee814
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
packaging/wrtjs.spec

index 7754296..deccb07 100755 (executable)
@@ -35,7 +35,6 @@ install -d %{buildroot}%{_resourcedir}
   install -m 0755 %{_outdir}/wrt-loader %{buildroot}%{_bindir}
   install -m 0644 packaging/wrt.loader %{buildroot}%{_datadir}/aul/
 %else
-%if "%{_vd_cfg_product_type}" != "LFD"
   ln -s %{_bindir}/wrt %{buildroot}%{_bindir}/wrt-loader
 %if "%{_vd_cfg_platform_type}" == "FULL_SMART"
   install -m 0644 packaging/wrt_tv.loader %{buildroot}%{_datadir}/aul/wrt.loader
@@ -44,7 +43,6 @@ install -d %{buildroot}%{_resourcedir}
   install -m 0644 packaging/wrt_tv_lite.loader %{buildroot}%{_datadir}/aul/wrt.loader
 %endif
 %endif
-%endif
 cp -r wrt_app/* %{buildroot}%{_resourcedir}/
 
 %post
@@ -62,5 +60,7 @@ rm -fr %{buildroot}
 %else
   %{_bindir}/wrt-loader
 %endif
+%if "%{_vd_cfg_product_type}" != "LFD"
 %{_datadir}/aul/wrt.loader
+%endif
 %{_resourcedir}/*