proc: Remove syscommon_proc_get_attr_current() and syscommon_proc_is_app() sandbox/y0.cho/tizen_10.0-nosmack tizen-next
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 16 Jan 2025 07:20:23 +0000 (16:20 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 16 Jan 2025 07:38:51 +0000 (16:38 +0900)
commita3d3d61f1399493ed7e4d0cf6aa4712335ff116d
tree968a89fdc1cd778842175033e29bcfd779e8eeac
parentf10316d0792426d53a51f0b0844fa80878dd93b6
proc: 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 had 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.

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