From 9ec00eb2d51387e34ee67b2ebd9442ec4f6c4ddf Mon Sep 17 00:00:00 2001 From: YONGMAN SON Date: Mon, 13 Jan 2020 15:47:18 +0900 Subject: [PATCH] [VD] Build fix - skip wrt-loader launch for LFD product 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 Signed-off-by: DongHyun Song --- packaging/wrtjs.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/wrtjs.spec b/packaging/wrtjs.spec index 7754296..deccb07 100755 --- a/packaging/wrtjs.spec +++ b/packaging/wrtjs.spec @@ -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}/* -- 2.7.4