Check thread smack label for thread-based app model 55/254155/5
authorYoungsoo Choi <kenshin.choi@samsung.com>
Wed, 24 Feb 2021 06:37:38 +0000 (22:37 -0800)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 15 Mar 2021 04:35:55 +0000 (21:35 -0700)
commit90e7d64867b5d4227a7b14b0992b25a0970164b5
tree78c1197df960e440eaab6729e729ba87b68c0b97
parentb9a48acd965b091f02ad0b1a5264fc39e902222f
Check thread smack label for thread-based app model

Web app has been launched on a process but
web service app is launched on a thread and has thread-based app sandboxing
by smack rule. So, 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 web app
because main thread inherits its process smack label from the path
|/proc/self/attr/current|.

Change-Id: I7098ff0672ab4fbb41d1df4e05e435a6cff6e5fc
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
src/package_manager_internal.c