[WRTjs] Block new thread creation while prepare app 17/290117/5 submit/tizen/20230323.160013
authorDongHyun Song <dh81.song@samsung.com>
Mon, 20 Mar 2023 07:52:21 +0000 (16:52 +0900)
committerBot Blink <blinkbot@samsung.com>
Thu, 23 Mar 2023 08:49:09 +0000 (08:49 +0000)
commit3f42ae16318fdadd533a1a501ce73b7d8757b3e0
tree3b09ae7b5d109016fc392962bbeffbbcb784a706
parent76041bed2d71191c25ee03340c9f6ced2a9f93e8
[WRTjs] Block new thread creation while prepare app

While handles security_manager_prepare_app(), if new thread is
spawned by ThreadPoolService. Then smack error is happened from
security_manager_prepare_app(), which validates smack labeling of
threads because the spawned new thread has still System::Privileged.

PlatformThread::BlockThreading() will block CreateThread() until
security_manager_prepare_app() done.

This is alternative solution of self smack labeling, which is deleted
from m108.

Change-Id: Idfefe542904c7fbed89ee6ae0b98b6dede28a052
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
base/threading/platform_thread.h
base/threading/platform_thread_posix.cc
wrt/src/app/tv/wrt_main_delegate_tv.cc
wrt/src/app/wrt_content_main.cc