Check thread smack label for thread-based app model 65/254065/7 submit/tizen/20210223.072943
authorYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 22 Feb 2021 23:42:09 +0000 (15:42 -0800)
committerPiotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Tue, 23 Feb 2021 06:50:16 +0000 (07:50 +0100)
commita673a9cb978d23cde5a8d6d834c3b6b867116587
tree0c5215344326d38187f183db73ce870564de61d8
parentdb63912641f6d305d66355e7b9166b8b3a43031b
Check thread smack label for thread-based app model

Legacy web service app had been launched on a process but
new web service app is launched on a thread to save memory usage.
With the thread-based app model, the thread smack label needs to be checked
from the path |/proc/<tid>/attr/current|.

Also, checking thread smack label is compatible with process-based app model
because main thread utilizes same path of |/proc/<pid>/attr/current| as well.

Change-Id: Ib02237c926a2deedcd91451a36dd2a3d832cfb04
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
src/common/tools.cc