libcommon: Remove syscommon_proc_get_attr_current() and syscommon_proc_is_app() 38/318438/2 accepted/tizen_unified_x_asan accepted/tizen/unified/20250122.093021 accepted/tizen/unified/x/20250122.173323 accepted/tizen/unified/x/asan/20250211.003623
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 16 Jan 2025 07:20:23 +0000 (16:20 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 17 Jan 2025 03:09:32 +0000 (12:09 +0900)
commit2b6fe2f51f044fd5328b8511109d2a0aace88ecd
tree968a89fdc1cd778842175033e29bcfd779e8eeac
parentf10316d0792426d53a51f0b0844fa80878dd93b6
libcommon: Remove syscommon_proc_get_attr_current() and syscommon_proc_is_app()

The syscommon_proc_is_app() was changed to use security-manager instaed
of access directly to a smack node. However, the newly added dependency
to security-manager generated dependency cycle:
 • libsyscommon → security-manager → pkgmgr → rpc-port → libstorage
   → libsyscommon

Removed the newly added dependency libsyscommon → security-manager, and
moved related function to where it has been used. Currently only the
deviced and resourced are using it.

Likewise, removed cynara-creds-pid and related function as well that
has been added recently. This is currently not a problem like
security-manager, but we realized that this libsyscommon is used by
a number of system packages so it is likely to generate unintended
cycle dependency when it gains external dependency. Therefore,
proactively removed dependency to cynara-creds-pid as well.

Change-Id: Ife78fee3601bcd3d9b0532b9935350c408891b32
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt
include/libsyscommon/proc.h
packaging/libsyscommon.spec
src/libcommon/proc.c
tests/CMakeLists.txt